Skip to content
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

chore: Simplify create_job slightly #893

Merged
merged 2 commits into from
Aug 23, 2021
Merged

chore: Simplify create_job slightly #893

merged 2 commits into from
Aug 23, 2021

Conversation

jimfulton
Copy link
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

@jimfulton jimfulton requested a review from a team August 23, 2021 19:06
@jimfulton jimfulton requested a review from a team as a code owner August 23, 2021 19:06
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Aug 23, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 23, 2021
query_job_config = google.cloud.bigquery.job.QueryJobConfig.from_api_repr(
copy_config
copy.deepcopy(job_config)
Copy link
Contributor

@tseaver tseaver Aug 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we making a copy because we expect from_api_repr to mutate the dict? The clauses above don't do so.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I made a copy because I didn't pay close enough attention to your suggestion. :)

Fixed.

@jimfulton jimfulton merged commit eed311e into googleapis:v3 Aug 23, 2021
@jimfulton jimfulton deleted the simplify-create-job-slightly branch August 23, 2021 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants