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 tags attached to this table. Tag keys are globally unique. Tag key is expected to be in the namespaced format, for example "123456789012/environment" where 123456789012 is the ID of the parent organization or project resource for this tag key. Tag value is expected to be the short name, for example "Production".`,
1461
1493
},
1494
+
// ExternalCatalogTableOptions: [Optional] Options defining open source compatible table.
1495
+
"external_catalog_table_options": {
1496
+
Type: schema.TypeList,
1497
+
Optional: true,
1498
+
MaxItems: 1,
1499
+
Description: `Options defining open source compatible table.`,
1500
+
Elem: &schema.Resource{
1501
+
Schema: map[string]*schema.Schema{
1502
+
// Parameters: [Optional] The parameters of the table.
1503
+
"parameters": {
1504
+
Type: schema.TypeMap,
1505
+
Optional: true,
1506
+
Elem: &schema.Schema{Type: schema.TypeString},
1507
+
Description: `A map of key value pairs defining the parameters and properties of the open source table. Corresponds with hive meta store table parameters. Maximum size of 4Mib.`,
1508
+
},
1509
+
// StorageDescriptor: [Optional] A storage descriptor containing information about the physical storage of this table.
1510
+
"storage_descriptor": {
1511
+
Type: schema.TypeList,
1512
+
Optional: true,
1513
+
MaxItems: 1,
1514
+
Description: `A storage descriptor containing information about the physical storage of this table.`,
1515
+
Elem: &schema.Resource{
1516
+
Schema: map[string]*schema.Schema{
1517
+
// LocationUri: [Optional] The physical location of the table (e.g. 'gs://spark-dataproc-data/pangea-data/case_sensitive/' or 'gs://spark-dataproc-data/pangea-data/*'). The maximum length is 2056 bytes.
1518
+
"location_uri": {
1519
+
Type: schema.TypeString,
1520
+
Optional: true,
1521
+
Description: `The physical location of the table (e.g. 'gs://spark-dataproc-data/pangea-data/case_sensitive/' or 'gs://spark-dataproc-data/pangea-data/*'). The maximum length is 2056 bytes.`,
1522
+
},
1523
+
// InputFormat: [Optional] Specifies the fully qualified class name of the InputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). The maximum length is 128 characters.
1524
+
"input_format": {
1525
+
Type: schema.TypeString,
1526
+
Optional: true,
1527
+
Description: `Specifies the fully qualified class name of the InputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). The maximum length is 128 characters.`,
1528
+
},
1529
+
// OutputFormat: [Optional] Specifies the fully qualified class name of the OutputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). The maximum length is 128 characters.
1530
+
"output_format": {
1531
+
Type: schema.TypeString,
1532
+
Optional: true,
1533
+
Description: `Specifies the fully qualified class name of the OutputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). The maximum length is 128 characters.`,
1534
+
},
1535
+
// SerdeInfo: [Optional] Serializer and deserializer information.
1536
+
"serde_info": {
1537
+
Type: schema.TypeList,
1538
+
Optional: true,
1539
+
MaxItems: 1,
1540
+
Description: `Serializer and deserializer information.`,
1541
+
Elem: &schema.Resource{
1542
+
Schema: map[string]*schema.Schema{
1543
+
// Name: [Optional] Name of the SerDe. The maximum length is 256 characters.
1544
+
"name": {
1545
+
Type: schema.TypeString,
1546
+
Optional: true,
1547
+
Description: `Name of the SerDe. The maximum length is 256 characters.`,
1548
+
},
1549
+
// SerializationLibrary: [Required] Specifies a fully-qualified class name of the serialization library that is responsible for the translation of data between table representation and the underlying low-level input and output format structures. The maximum length is 256 characters.
1550
+
"serialization_library": {
1551
+
Type: schema.TypeString,
1552
+
Required: true,
1553
+
Description: `Specifies a fully-qualified class name of the serialization library that is responsible for the translation of data between table representation and the underlying low-level input and output format structures. The maximum length is 256 characters.`,
1554
+
},
1555
+
// Parameters: [Optional] Key-value pairs that define the initialization parameters for the serialization library. Maximum size 10 Kib.
1556
+
"parameters": {
1557
+
Type: schema.TypeMap,
1558
+
Optional: true,
1559
+
Elem: &schema.Schema{Type: schema.TypeString},
1560
+
Description: `Key-value pairs that define the initialization parameters for the serialization library. Maximum size 10 Kib.`,
1561
+
},
1562
+
},
1563
+
},
1564
+
},
1565
+
},
1566
+
},
1567
+
},
1568
+
// ConnectionId: [Optional] The connection specifying the credentials to be used to read external storage, such as Azure Blob, Cloud Storage, or S3. The connection is needed to read the open source table from BigQuery Engine. The connection_id can have the form `<project_id>.<location_id>.<connection_id>` or `projects/<project_id>/locations/<location_id>/connections/<connection_id>`.
Description: `The connection specifying the credentials to be used to read external storage, such as Azure Blob, Cloud Storage, or S3. The connection is needed to read the open source table from BigQuery Engine. The connection_id can have the form <project_id>.<location_id>.<connection_id> or projects/<project_id>/locations/<location_id>/connections/<connection_id>.`,
1574
+
},
1575
+
},
1576
+
},
1577
+
},
1462
1578
},
1463
1579
UseJSONNumber: true,
1464
1580
}
@@ -1547,6 +1663,13 @@ func resourceTable(d *schema.ResourceData, meta interface{}) (*bigquery.Table, e
1547
1663
}
1548
1664
table.Schema=schema
1549
1665
}
1666
+
1667
+
ifv, ok:=d.GetOk("schema_foreign_type_info"); ok {
0 commit comments