-
Notifications
You must be signed in to change notification settings - Fork 116
Fix : Unable to poll results in async API #515
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -898,8 +898,10 @@ def execute_command( | |
sessionHandle=session_handle, | ||
statement=operation, | ||
runAsync=True, | ||
# For async operation we don't want the direct results | ||
getDirectResults=ttypes.TSparkGetDirectResults( | ||
maxRows=max_rows, maxBytes=max_bytes | ||
maxRows=0 if async_op else max_rows, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of setting maxRows as 0, I would recommend not specifying the direct result object in the request altogether. This is to make the intention clear of not expecting the direct results. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have made the object None |
||
maxBytes=0 if async_op else max_bytes, | ||
), | ||
canReadArrowResult=True if pyarrow else False, | ||
canDecompressLZ4Result=lz4_compression, | ||
|
Uh oh!
There was an error while loading. Please reload this page.