-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
BigQuery Job objects not pickle-able #5866
Comments
@tseaver CopyJob doesnt seem to have to_api_repr. Can you suggest which Class type does the job you are referring to belongs to ? |
@c1dc-candidate-22 Hmm, looking at the code, the method I had in mind isn't called |
This is where I fully admit I have not fully internalized this veneer yet, so I'm happy to defer to others. Exposing the full representation seems fine, but its not clear that aliasing is the right thing to do here without further reading on my part. Perhaps @tswast can offer more insight? |
Job is the one set of resources that we didn't fully refactor during the 1.0 rewrite to follow the It'll be a little bit tricky since Job mutates itself with the private |
Maybe the reason for the error is the data format used is not Python-specific? |
@tswast If |
Yes, it looks like |
Leave '_build_resource' behind as a backward-compatibility alias. Closes #5866.
@tseaver suggested I start a new issue after adding to a closed issue: #3191
BigQuery Job Objects are not pickle-able:
I'm guessing that's because it represents some sort of future? IMO it would be fine if
__getstate__
deleted the polling and let a reference that could be checked.@tseaver suggests:
which works. This could also be done by
__getstate__
itself.Thanks
The text was updated successfully, but these errors were encountered: