We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74585f3 commit ed0f73bCopy full SHA for ed0f73b
src/databricks/sql/thrift_backend.py
@@ -898,8 +898,10 @@ def execute_command(
898
sessionHandle=session_handle,
899
statement=operation,
900
runAsync=True,
901
+ # For async operation we don't want the direct results
902
getDirectResults=ttypes.TSparkGetDirectResults(
- maxRows=max_rows, maxBytes=max_bytes
903
+ maxRows=0 if async_op else max_rows,
904
+ maxBytes=0 if async_op else max_bytes,
905
),
906
canReadArrowResult=True if pyarrow else False,
907
canDecompressLZ4Result=lz4_compression,
0 commit comments