Skip to content

Add DatastoreBackupOptions class for BigQuery - #1757

Merged
shinfan merged 4 commits into
googleapis:masterfrom
shinfan:master
Mar 17, 2017
Merged

shinfan merged 4 commits into
googleapis:masterfrom
shinfan:master

Conversation

@shinfan

@shinfan shinfan commented Mar 15, 2017

Copy link
Copy Markdown
Contributor

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.

.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

ghost commented Mar 16, 2017

Copy link
Copy Markdown

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

ghost commented Mar 16, 2017

Copy link
Copy Markdown
Contributor Author

PTAL

@coveralls

ghost commented Mar 16, 2017

Copy link
Copy Markdown

Coverage Status

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

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

ghost commented Mar 16, 2017

Copy link
Copy Markdown
Contributor Author

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

ghost commented Mar 17, 2017

Copy link
Copy Markdown
Contributor Author

@michaelbausor PTAL

@coveralls

ghost commented Mar 17, 2017

Copy link
Copy Markdown

Coverage Status

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

@michaelbausor

ghost commented Mar 17, 2017

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