-
Notifications
You must be signed in to change notification settings - Fork 189
Cancel current query on cursor.close()
#195
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
Conversation
def test_close_cursor(trino_connection): | ||
cur = trino_connection.cursor() | ||
cur.execute("SELECT * FROM tpch.sf1.customer") | ||
cur.fetchone() # TODO (https://github.com./trinodb/trino/issues/2683) test with and without .fetchone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this TODO still relevant ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That particular issue is closed. I have tested the same code when omitting the cur.fetchone()
the query is still cancelled, however it is not showing up in the Trino UI. I will remove the comment in a preparatory commit.
7605d46
to
9bb1466
Compare
9bb1466
to
00c4461
Compare
Merged, thanks! |
@ebyhr started having this problem with Trino installed in docker today, first time ever, never happened since I started the trino container. What should I do to resolve? |
Fixes #84