BigQuery: Client.query modifies job_config object #9727
Labels
api: bigquery
Issues related to the BigQuery API.
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Steps to reproduce
QueryJobConfig
object.Client.query
method.Code example
Stack trace
When you run a job, the configuration object may be modified. In this example, it sets the destination table. It is unexpected that the original Python object would be modified.
I propose that the
query
(and other "job" methods on client) be updated to make a deep copy of the thejob_config
argument before passing it on to the job constructor.The text was updated successfully, but these errors were encountered: