From ac4af45a9302af386d583bb641dedb4055017d4a Mon Sep 17 00:00:00 2001 From: The Magician Date: Fri, 13 Nov 2020 10:31:49 -0800 Subject: [PATCH] fix typo + add orc (#4230) (#2714) Signed-off-by: Modular Magician --- .changelog/4230.txt | 3 +++ google-beta/resource_bigquery_table.go | 4 ++-- website/docs/r/bigquery_table.html.markdown | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changelog/4230.txt diff --git a/.changelog/4230.txt b/.changelog/4230.txt new file mode 100644 index 0000000000..1403b82490 --- /dev/null +++ b/.changelog/4230.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +bigquery: added `ORC` as a valid option to `source_format` field of `google_bigquery_table` resource +``` diff --git a/google-beta/resource_bigquery_table.go b/google-beta/resource_bigquery_table.go index 6a6f75e3ee..68f91df6bb 100644 --- a/google-beta/resource_bigquery_table.go +++ b/google-beta/resource_bigquery_table.go @@ -153,9 +153,9 @@ func resourceBigQueryTable() *schema.Resource { "source_format": { Type: schema.TypeString, Required: true, - Description: `The data format. Supported values are: "CSV", "GOOGLE_SHEETS", "NEWLINE_DELIMITED_JSON", "AVRO", "PARQUET", and "DATASTORE_BACKUP". To use "GOOGLE_SHEETS" the scopes must include "googleapis.com/auth/drive.readonly".`, + Description: `The data format. Supported values are: "CSV", "GOOGLE_SHEETS", "NEWLINE_DELIMITED_JSON", "AVRO", "PARQUET", "ORC" and "DATASTORE_BACKUP". To use "GOOGLE_SHEETS" the scopes must include "googleapis.com/auth/drive.readonly".`, ValidateFunc: validation.StringInSlice([]string{ - "CSV", "GOOGLE_SHEETS", "NEWLINE_DELIMITED_JSON", "AVRO", "DATASTORE_BACKUP", "PARQUET", + "CSV", "GOOGLE_SHEETS", "NEWLINE_DELIMITED_JSON", "AVRO", "DATASTORE_BACKUP", "PARQUET", "ORC", }, false), }, // SourceURIs [Required] The fully-qualified URIs that point to your data in Google Cloud. diff --git a/website/docs/r/bigquery_table.html.markdown b/website/docs/r/bigquery_table.html.markdown index 57f57ed87e..8ea824628d 100644 --- a/website/docs/r/bigquery_table.html.markdown +++ b/website/docs/r/bigquery_table.html.markdown @@ -179,7 +179,7 @@ The `external_data_configuration` block supports: `google_bigquery_table.schema` * `source_format` (Required) - The data format. Supported values are: - "CSV", "GOOGLE_SHEETS", "NEWLINE_DELIMITED_JSON", "AVRO", "PARQUET", + "CSV", "GOOGLE_SHEETS", "NEWLINE_DELIMITED_JSON", "AVRO", "PARQUET", "ORC" and "DATASTORE_BACKUP". To use "GOOGLE_SHEETS" the `scopes` must include "https://www.googleapis.com/auth/drive.readonly".