- Notifications
You must be signed in to change notification settings - Fork126
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -898,8 +898,12 @@ def execute_command( | ||
| sessionHandle=session_handle, | ||
| statement=operation, | ||
| runAsync=True, | ||
| # For async operation we don't want the direct results | ||
| getDirectResults=None | ||
| if async_op | ||
| else ttypes.TSparkGetDirectResults( | ||
| maxRows=max_rows, | ||
| maxBytes=max_bytes, | ||
| ), | ||
Comment on lines +902 to 907 Contributor 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. do we have a linter for python driver yet? if not, could you please open an issue to community or internally? ContributorAuthor 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. @jayantsing-db I can raise a new PR for that | ||
| canReadArrowResult=True if pyarrow else False, | ||
| canDecompressLZ4Result=lz4_compression, | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -94,7 +94,7 @@ def test_long_running_query(self): | ||
| scale_factor = 1 | ||
| with self.cursor() as cursor: | ||
| while duration < min_duration: | ||
| assert scale_factor <1024, "Detected infinite loop" | ||
Contributor 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. Could you explain this change? ContributorAuthor 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. For long running queries the previous upper limit of scale factor was not sufficient to run queries for atleast 5 minutes, hence increased it | ||
| start = time.time() | ||
| cursor.execute( | ||
Uh oh!
There was an error while loading.Please reload this page.