-
Notifications
You must be signed in to change notification settings - Fork 163
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
How to get infoUri before query finishes #388
Comments
What do you actually plan to do? Maybe there's an alternative. We intentionally changed the behaviour to fix a bug where queries which don't return result sets silently swallowed errors. It has the side effect to make the client API easier to use since users no longer need to call |
Is it possible to expose a method that does the non-blocking stuff (esp. |
Expected behavior
execute
returns soon after it's run so thatinfoUri
can be available for tracking.Actual behavior
executes
is blocked until at least one row is received or query is finished or cancelled (https://github.com/trinodb/trino-python-client/blob/0.326.0/trino/client.py#L819-L821)Steps To Reproduce
Log output
No response
Operating System
NAME="Ubuntu" VERSION="20.04.4 LTS (Focal Fossa)"
Trino Python client version
0.319.0
Trino Server version
419
Python version
3.8.13
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: