-
Notifications
You must be signed in to change notification settings - Fork 304
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
Wait for Query hangs indefinitely for some queries #403
Comments
Playing around with the internals of
Setting the timeout to 1 works. |
@willbowditch Could please share the query or amount of data you are retrieving, it might happen with the big queries or when downloading large number of rows, i have tried with around 16,000 rows but not able to reproduce it. |
@HemangChothani Sure, here's some details. The data is not that large, resulting data frame using the previous version:
The query is not super complex. Roughly it's three Couple of observations: |
This is when query hit the cache and it just show that query is running and when query ends it shows the 100% and the time it takes, it doesn’t hang there. The only difference is when you didn't pass
If the progress bar show the last stage and completed and still time increments on progress bar means some operation is going on after that(completion of stages), once the time increment stopped you will get the Yes, right now |
The downloading progress bar never starts and a data frame is never returned. The same query in the web GUI takes: See screen grab of the following test program for the last two versions of
|
@willbowditch Sorry for the extra noise, i am able to reproduce and it might because of caching changes done in the PR which is now reverted, Could please try with the master branch of |
@HemangChothani Can confirm it's now fixed on master, thanks 👍
|
I think this bug has been introduced by the
wait_for_query
tqdm
helper in #352Dropping the previous version resolves
pipenv install google-cloud-bigquery==2.3.1
.Some queries now hang indefinitely at "query is running" or "complete":
However running the same without the progress bar returns the dataframe
The following also returns the dataframe:
Environment details
python --version
3.6.10pip --version
pip 20.2.4google-cloud-bigquery
version:pip show google-cloud-bigquery
Version: 2.4.0The text was updated successfully, but these errors were encountered: