trino-python-client
trino-python-client copied to clipboard
add an option to deferred fetch result in Cursor.execute()
After introduce in #220, all query are now until at least one row is received or query is finished or cancelled. In some cases such as Superset, users would like to be able to cancel the query but the execution still going on.
See also: apache/superset#24913 Fix: apache/superset#24858
This probably needs unit test coverage as well.
Test added
Hi @mdesmet, @hashhar, could you help me review this PR.
@dungdm93 : Can you handle the open comments?