Skip to content

BigQuery Job Updaters and EncryptionConfiguration#2022

Merged
quartzmo merged 21 commits into
masterfrom
bigquery
Mar 26, 2018
Merged

BigQuery Job Updaters and EncryptionConfiguration#2022
quartzmo merged 21 commits into
masterfrom
bigquery

Conversation

@quartzmo
Copy link
Copy Markdown
Member

@quartzmo quartzmo commented Mar 26, 2018

This PR merges into master the bigquery topic branch that collected the changes from #1973, #2003, #2014, #2015 and #2016.

tswast added 21 commits March 26, 2018 11:41
This adds partial support for customer-managed encryption keys.
Also adds
- acceptence test for creating and modifying a table.
- additional unit tests for EncryptionConfiguration methods.
Use block table updater to set encryption_configuration in create_table.
This adds a block to load_job so that new properties can be added to
LoadJob without needing to add arguments to the load_job function.
This will allow additional properties to be added to LoadJob without
needing to add additional arguments to the `dataset.load` and
`table.load` methods.

Also added a `ensure_job_succeeded! job` method to get the line counts
down enough to make rubocop happy with the change.
Also move some shared conversion code to the Convert class.
* Add a helper to create an EncryptionConfiguration in project.
* Rename encryption_configuration property to more concise encryption.
* Add acceptance tests for encryption
* Add imports to job files that depend on encryption.
@quartzmo quartzmo added the api: bigquery Issues related to the BigQuery API. label Mar 26, 2018
@quartzmo quartzmo self-assigned this Mar 26, 2018
@quartzmo quartzmo requested review from blowmage and tswast March 26, 2018 21:36
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 26, 2018
@quartzmo
Copy link
Copy Markdown
Member Author

quartzmo commented Mar 26, 2018

@tswast @jeremywadsack There were a number of conflicts between #1973 and #2000 that I needed to manually resolve while rebasing this branch on master. All tests are passing (including acceptance tests), but PTAL just to be sure the Load Job code still looks good.

Copy link
Copy Markdown
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.

Thanks! Load job changes look good to me.

yield updater if block_given?

job_gapi = updater.to_gapi
if local_file? files

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Copy link
Copy Markdown
Contributor

@blowmage blowmage left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for taking care of the conflicts, @quartzmo!

@quartzmo quartzmo merged commit 544137d into master Mar 26, 2018
@tswast tswast deleted the bigquery branch March 26, 2018 22:20
@jeremywadsack
Copy link
Copy Markdown
Contributor

Looks like this preserves the changes in 2000.

quartzmo added a commit to quartzmo/google-cloud-ruby that referenced this pull request Mar 28, 2018
Add both unit and acceptance tests to improve coverage.

[refs googleapis#2022]
quartzmo added a commit that referenced this pull request Mar 28, 2018
Add both unit and acceptance tests to improve coverage.

[refs #2022]
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.

5 participants