Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing null query check in query response #137

Open
amitds1997 opened this issue Feb 24, 2021 · 2 comments
Open

Missing null query check in query response #137

amitds1997 opened this issue Feb 24, 2021 · 2 comments

Comments

@amitds1997
Copy link
Contributor

For an incompatible client, Trino/Presto throw exception :

Basic authentication or X-Trino-User must be sent // Trino
Basic authentication or X-Presto-User must be sent // Presto

and sends no Query Id information.

We are currently submitting the query for addition to Query History without checking if the Query Id is null.

which leads to an Exception

java.sql.SQLException: Field 'query_id' doesn't have a default value
@endoplasmicR
Copy link
Contributor

this is likely something https://trino.io/blog/2021/01/04/migrating-from-prestosql-to-trino.html has described
and you need to enable "Client protocol compatiblity" on the trino coordinator

@endoplasmicR
Copy link
Contributor

We may consider adding dual HTTP header writes (if eitherX-Presto-... or X-Trino-... is set, both X-Presto-... and X-Trino-...` headers would be send to the coordinators) in the future

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

No branches or pull requests

2 participants