-
Notifications
You must be signed in to change notification settings - Fork 1.6k
BigQuery: list_jobs() iterator encounters error when calling classmethod from_api_repr() #2882
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
Comments
@sean185 Thanks for the report! Based on the traceback, the job being constructed is a "copy" job: does that seem plausible to you? One thing you could do to help identify the problem would be to set a breakpoint at the failure, and report the contents of the jobs = bqClient.list_jobs(all_users=True)
try:
jobs = list(jobs)
except KeyError:
import pdb; pdb.set_trace() and then "step down" into the traceback until you get to the bottom, and |
@tseaver Thank you for responding so quickly! Yes I think it is possible that Copy Jobs are not converted properly, since the Apologies, I am not too familiar with the use of
and so before I could type |
@sean185 I'm guessing that the copy job which causes this failure was created with a single |
@tseaver Man, this is amazing, I think this means it'll be fixed in the next patch or something? You guys are awesome! For now though I'll have to stick with not being able to list all jobs at all =x So when should I close this issue? |
I don't think there is any way to filter / narrow the set of jobs returned by the API. You could try applying the patch from the PR to your local copy.
It will be closed automatically when PR #2884 gets merged. |
Such jobs would be created via another client: we map that configuration onto a sequence of tables containing only the one item. Closes: googleapis#2882.
Disclaimer: I am new to opening issues so please guide me along on what I can do to improve, thanks.
Ubuntu 14.04
Python 2.7.6
google-cloud-python version
The text was updated successfully, but these errors were encountered: