Skip to content

Conversation

tonyalaribe
Copy link
Contributor

For insert queries through Postgres text-based clients, the request goes through the SimpleQueryHandler. However, the SimpleQueryHandler does not return a valid response, causing such Postgres clients to crash.

This PR catches insert queries and tries to return a valid response. E.g. INSERT 0 1

Copy link
Member

@sunng87 sunng87 left a comment

Choose a reason for hiding this comment

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

Thank you for the patch! Please see my inline comments.

@tonyalaribe tonyalaribe requested a review from sunng87 April 14, 2025 12:52
Copy link
Member

@sunng87 sunng87 left a comment

Choose a reason for hiding this comment

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

LGTM. Please fix the format issue and we can get this merged. Thank you!

@tonyalaribe
Copy link
Contributor Author

LGTM. Please fix the format issue and we can get this merged. Thank you!

Thanks @sunng87 I just ran cargo fmt, so should be good now.

@sunng87 sunng87 merged commit 2cf5878 into datafusion-contrib:master Apr 15, 2025
6 checks passed
@sunng87
Copy link
Member

sunng87 commented Apr 15, 2025

Thank you! @tonyalaribe

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.

2 participants