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

Add DatastoreBackupOptions class for BigQuery #1757

Merged
merged 4 commits into from
Mar 17, 2017

Conversation

shinfan
Copy link
Contributor

@shinfan shinfan commented Mar 15, 2017

Fixes #552

@shinfan shinfan added api: bigquery Issues related to the BigQuery API. breaking change labels Mar 15, 2017
* all properties. If any named property isn't found in the Cloud Datastore backup, an invalid
* error is returned in the job result.
*/
Builder setProjectionFields(List<String> projectionFields);

This comment was marked as spam.

This comment was marked as spam.

@@ -54,7 +53,6 @@
.setFormatOptions(CSV_OPTIONS)
.setIgnoreUnknownValues(IGNORE_UNKNOWN_VALUES)
.setMaxBadRecords(MAX_BAD_RECORDS)
.setProjectionFields(PROJECTION_FIELDS)

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling e8f9472 on shinfan:master into ** on GoogleCloudPlatform:master**.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 16, 2017
@shinfan
Copy link
Contributor Author

shinfan commented Mar 16, 2017

PTAL

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 763ead9 on shinfan:master into ** on GoogleCloudPlatform:master**.

@@ -108,7 +107,11 @@ private Builder(com.google.api.services.bigquery.model.JobConfiguration configur
this.schema = Schema.fromPb(loadConfigurationPb.getSchema());
}
this.ignoreUnknownValues = loadConfigurationPb.getIgnoreUnknownValues();
this.projectionFields = loadConfigurationPb.getProjectionFields();
if (loadConfigurationPb.getProjectionFields() != null) {
this.formatOptions = DatastoreBackupOptions.newBuilder()

This comment was marked as spam.

This comment was marked as spam.

@shinfan
Copy link
Contributor Author

shinfan commented Mar 16, 2017

Two of the tests passed and the others failed due to timeout. I don't think it is caused by this PR.

* If no properties are specified, BigQuery loads all properties. If any named property isn't
* found in the Cloud Datastore backup, an invalid error is returned in the job result.
*/
Builder setProjectionFields(List<String> projectionFields) {

This comment was marked as spam.

This comment was marked as spam.

/**
* Google BigQuery options for Cloud Datastore backup.
*/
public final class DatastoreBackupOptions extends FormatOptions {

This comment was marked as spam.

This comment was marked as spam.

@shinfan
Copy link
Contributor Author

shinfan commented Mar 17, 2017

@michaelbausor PTAL

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 0a76886 on shinfan:master into ** on GoogleCloudPlatform:master**.

@michaelbausor
Copy link
Contributor

LGTM

@shinfan shinfan merged commit 20777d3 into googleapis:master Mar 17, 2017
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.

4 participants