Skip to content

Expose SQL query in QueryJob API #2511

@aaronkavlie-wf

Description

@aaronkavlie-wf

I had a need to reference the original SQL query from a job. After running job.reload() it's available on a QueryJob instance, but only by reaching into _properties directly:

query = job._properties['configuration']['query']['query']

it should be exposed under a more direct public property.

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions