Skip to content

BUG: The 'jobComplete' key may be present but False in the BigQuery query results #8728

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/source/whatsnew/v0.16.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,5 @@ Bug Fixes
- Fixed issue in the ``xlsxwriter`` engine where it added a default 'General' format to cells if no other format wass applied. This prevented other row or column formatting being applied. (:issue:`9167`)
- Fixes issue with ``index_col=False`` when ``usecols`` is also specified in ``read_csv``. (:issue:`9082`)
- Bug where ``wide_to_long`` would modify the input stubnames list (:issue:`9204`)

- Bug in the Google BigQuery reader where the 'jobComplete' key may be present but False in the query results (:issue:`8728`)
2 changes: 1 addition & 1 deletion pandas/io/gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def run_query(self, query):

job_reference = query_reply['jobReference']

while(not 'jobComplete' in query_reply):
while(not query_reply.get('jobComplete', False)):
print('Job not yet complete...')
query_reply = job_collection.getQueryResults(
projectId=job_reference['projectId'],
Expand Down