-
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
Expose SQL query in QueryJob API #2511
Comments
The job actually has a |
@tseaver Similar to #1835 (comment) |
@dhermes I knew there was another issue about those kind of public-but-undocumented attrs. |
There's also #2034 |
Yes, that's the first thing I tried. It's job = bigquery.job.QueryJob(job_id, None, bigquery.Client())
job.reload() It doesn't seem like that class is intended for API users to call directly (especially since it takes the query string as an input), so if there's a better way to do this let me know. |
Thanks for the followup: |
I had a need to reference the original SQL query from a job. After running
job.reload()
it's available on aQueryJob
instance, but only by reaching into_properties
directly:it should be exposed under a more direct public property.
The text was updated successfully, but these errors were encountered: