You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: `The compression type of the data source. Valid values are "NONE" or "GZIP".`,
111
111
},
112
+
// Schema: Optional] The schema for the data.
113
+
// Schema is required for CSV and JSON formats if autodetect is not on.
114
+
// Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, Avro, ORC and Parquet formats.
115
+
"schema": {
116
+
Type: schema.TypeString,
117
+
Optional: true,
118
+
Computed: true,
119
+
ForceNew: true,
120
+
ValidateFunc: validation.ValidateJsonString,
121
+
StateFunc: func(vinterface{}) string {
122
+
json, _:=structure.NormalizeJsonString(v)
123
+
returnjson
124
+
},
125
+
Description: `A JSON schema for the external table. Schema is required for CSV and JSON formats and is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats when using external tables.`,
126
+
},
112
127
// CsvOptions: [Optional] Additional properties to set if
Description: `A JSON schema for the table. Schema is required for CSV and JSON formats and is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats when using external tables.`,
302
+
Description: `A JSON schema for the table.`,
291
303
},
292
304
293
305
// View: [Optional] If specified, configures this table as a view.
@@ -636,7 +648,6 @@ func resourceBigQueryTableCreate(d *schema.ResourceData, meta interface{}) error
636
648
}
637
649
638
650
log.Printf("[INFO] BigQuery table %s has been created", res.Id)
0 commit comments