Skip to content

Commit eed311e

Browse files
author
Jim Fulton
authored
chore: Simplify create_job slightly (#893)
1 parent 2689df4 commit eed311e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

google/cloud/bigquery/client.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1935,11 +1935,10 @@ def create_job(
19351935
source_type=source_type,
19361936
)
19371937
elif "query" in job_config:
1938-
copy_config = copy.deepcopy(job_config)
19391938
query_job_config = google.cloud.bigquery.job.QueryJobConfig.from_api_repr(
1940-
copy_config
1939+
job_config
19411940
)
1942-
query = _get_sub_prop(copy_config, ["query", "query"])
1941+
query = _get_sub_prop(job_config, ["query", "query"])
19431942
return self.query(
19441943
query, job_config=query_job_config, retry=retry, timeout=timeout
19451944
)

0 commit comments

Comments
 (0)