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

Adding missing properties from LoadJobConfig to LoadJob library #7710

Merged
merged 4 commits into from
Apr 15, 2019

Conversation

lbristol88
Copy link
Contributor

@lbristol88 lbristol88 commented Apr 15, 2019

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 15, 2019
Copy link
Contributor

@tswast tswast left a comment

Choose a reason for hiding this comment

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

LGTM once there is a test for non-None description and friendly name.

@@ -1753,6 +1753,24 @@ def _verifyResourceProperties(self, job, resource):
else:
self.assertIsNone(job.destination_encryption_configuration)

if "destinationTableDescription" in config:
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, _verifyResourceProperties isn't a very good example to follow. I prefer explicitly setting the values you are looking for in the test itself.

Please remove this code and add check for string values for destination_table_description and destination_table_friendly_name to test_ctor_w_config.

@tswast tswast added api: bigquery Issues related to the BigQuery API. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Apr 15, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 15, 2019
@tswast tswast merged commit 785c907 into googleapis:master Apr 15, 2019
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 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.

BigQuery: Add missing configuration properties to LoadJob
4 participants