-
Notifications
You must be signed in to change notification settings - Fork 208
fix(csharp/src/Drivers/BigQuery): Fix the bug about large result and timeout #2810
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
Merged
CurtHagenlocher
merged 1 commit into
apache:main
from
qifanzhang-ms:qifanzhang/fixgbqbugabouttimeoutandlargeresults
May 12, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Would removing the polling loop not break the case where there's a longer-running job?. To the extent that there's a problem with the query timeout, should that not instead be reflected in the "while true" logic that doesn't currently take a timeout into account?
@davidhcoe, waiting for your feedback on this.
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.
The change in timeout behavior is caused by this commit: feat(csharp/src/Drivers/BigQuery): Add support for AAD/Entra authenti… · apache/arrow-adbc@5aa9f1e.
Let me explain the changes before and after this commit based on my understanding. In the previous timeout feature, it was completely specified by the timeout parameter in QueryResultOptions (default is five minutes, if the job is not completed after 5 minutes, it will prompt timeout), but customers can freely set it (such as setting timeout after 1 minute, timeout after 15 minutes, etc.). But after the modification, it became a constant wait and completely uncontrollable.
I don't think it's necessary to add relevant logic in while true, because the official QueryResultOptions already has a timeout parameter to implement this function, and we have been using it before without encountering any problems.
Of course, this is my viewpoint, and I look forward to your opinions.
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 will take a look.
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.
This looks good to me @CurtHagenlocher . I validated the long running query will still succeed without that block in place, and it will time out when it is supposed to time out.