conn = trino.dbapi.connect(...)
cur = conn.cursor()
cur.close()
The close should succeed.
Actual behavior
The close actually fails:
trino.exceptions.OperationalError: Cancel query failed; no running query
Steps To Reproduce
conn = trino.dbapi.connect(...)
cur = conn.cursor()
cur.close()
Log output
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../python3.10/site-packages/trino/dbapi.py", line 709, in close
self.cancel()
File ".../python3.10/site-packages/trino/dbapi.py", line 703, in cancel
raise trino.exceptions.OperationalError(
trino.exceptions.OperationalError: Cancel query failed; no running query
Expected behavior
When you do this:
The
close
should succeed.Actual behavior
The
close
actually fails:Steps To Reproduce
Log output
Operating System
CentOS 8
Trino Python client version
0.327.0
Trino Server version
406
Python version
3.10.8
Are you willing to submit PR?