Skip to content

py: add SQLContext.input_json() to send json data#2088

Merged
abhizer merged 2 commits into
mainfrom
issue2087
Jul 25, 2024
Merged

py: add SQLContext.input_json() to send json data#2088
abhizer merged 2 commits into
mainfrom
issue2087

Conversation

@abhizer

@abhizer abhizer commented Jul 24, 2024

Copy link
Copy Markdown
Contributor

Is this a user-visible change (yes/no): yes
Fixes: #2087

Signed-off-by: Abhinav Gyawali <22275402+abhizer@users.noreply.github.com>
@abhizer abhizer requested a review from rivudhk July 24, 2024 12:11
Signed-off-by: Abhinav Gyawali <22275402+abhizer@users.noreply.github.com>

return res

def to_dict(self, clear_buffer: bool = True):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to make clear a separate method?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I felt like that introduces more friction than necessary. In most cases, we likely want to clear the buffer anyway.

@abhizer abhizer merged commit b7bd1db into main Jul 25, 2024
@abhizer abhizer deleted the issue2087 branch July 25, 2024 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

py: allow sending and receiving simple JSON data

3 participants