- Notifications
You must be signed in to change notification settings - Fork321
feat: support setting max_stream_count when fetching query result#2051
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.
Conversation
| created by the server. If ``max_queue_size`` is :data:`None`, the queue | ||
| size is infinite. | ||
| max_stream_count (Optional[int]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I think it would be more consistent if we use the same docstring ashere. It also mentions the effect ofpreserve_order (in this caseself._preserve_order), which I think we should make clear here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
In this case,_preserve_order is automatically set by parsing the queries, and not a user-facing API. I'll update the docstring to mention that effect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Updated
| .. versionadded:: 2.14.0 | ||
| max_stream_count (Optional[int]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Linchin commentedNov 11, 2024
Thank you@kien-truong for adding further support for |
kien-truong commentedNov 11, 2024
Hi, the default code path with the default arguments is already covered by the current tests. |
Linchin commentedNov 11, 2024
@kien-truong sounds good. The mypy test is also failing, could you fix it too? You can run it by running |
31662ad to0e52722CompareAllow user to set max_stream_count when fetching resultusing BigQuery Storage API with RowIterator's incremental methods:* to_arrow_iterable* to_dataframe_iterable
0e52722 tofb726ebComparekien-truong commentedNov 16, 2024
I have added tests to cover user-provided |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Linchin commentedNov 19, 2024
Thanks@kien-truong, the PR mostly looks good. I just have some small question regarding ignored coverage for the tests. |
Linchin left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM. Thank you!
d461297 intogoogleapis:mainUh oh!
There was an error while loading.Please reload this page.
Allow user to set max_stream_count when fetching result using BigQuery Storage API with incremental methods:
Fixes#2030 🦕