-
Notifications
You must be signed in to change notification settings - Fork 122
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
simple query hangs in 0.14.1, works in 0.13.3 #343
simple query hangs in 0.14.1, works in 0.13.3 #343
Comments
Please share what package versions you are using. According to the package manager:
According to Python itself:
Also, when you stop the program, please share the stacktrace so that we can see where it is getting stuck. |
While generating the requirements files, I changed the version back to 0.14.1 and it still worked. I then created a new environment using the freeze file and that worked too. So I tried recreating the problem from scratch, and I succeeded. Made new virtualenv (python 3.8) And the problem returns. I did a diff on the freeze files from the 0.14.1 environment that works, and the one that doesn't.
Replacing google-cloud-bigquery==2.4.0 with google-cloud-bigquery==1.28.0 fixes the issue. Didn't change anything else in the environment. Just in case it matters, here's a session record from a run that didn't work. FYI, I actually left one of these running for five hours and it still didn't finish. loading summary dataframe |
Could you try with I wonder if this is an unintended consequence of googleapis/python-bigquery#374 |
Works with google-cloud-bigquery==2.3.1 |
Same issue .. got fixed...! Thanks |
I am reverting what I believe to be the cause of the regression in googleapis/python-bigquery#400 Hopefully that means this issue will not occur in |
When there are large result sets, fetching rows while waiting for the query to finish can cause the API to hang indefinitely. (This may be due to an interaction between connection timeout and API timeout.) This reverts commit 86f6a51 (#374). Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-bigquery/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary) Fixes googleapis/python-bigquery-pandas#343 Fixes #394 🦕
Fixed in I've closed out googleapis/python-bigquery#362 which was the cause of this behavior, as I don't believe multi-second API requests are ideal for the often interactive Python use cases. |
Actually, I'll re-open this to mark version 2.4.x as unsupported. |
SUMMARY_TABLE is very simple million-record table in bigquery, nothing but short strings, numbers, and a timestamp.
Installed pandas-gbq and got the 0.14.1 version.
Run
and it works normally.
Run
(or no LIMIT) and it runs forever. Note that I tried setting max_results and it didn't make any difference, even if set to less than 20000.
Uninstall 0.14.1, install 0.13.3, the problem is gone.
The text was updated successfully, but these errors were encountered: