trino-python-client icon indicating copy to clipboard operation
trino-python-client copied to clipboard

add an option to deferred fetch result in Cursor.execute()

Open dungdm93 opened this issue 2 years ago • 4 comments

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

dungdm93 avatar Aug 08 '23 09:08 dungdm93

This probably needs unit test coverage as well.

giftig avatar Aug 08 '23 13:08 giftig

Test added

dungdm93 avatar Aug 13 '23 15:08 dungdm93

Hi @mdesmet, @hashhar, could you help me review this PR.

dungdm93 avatar Sep 27 '23 10:09 dungdm93

@dungdm93 : Can you handle the open comments?

mdesmet avatar Sep 28 '23 08:09 mdesmet