published on Wednesday, Jul 29, 2026 by Pulumi
published on Wednesday, Jul 29, 2026 by Pulumi
Hive Tables in BigLake Metastore that exist within a Hive Catalog and Database.
Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources.
Example Usage
Biglake Hive Table
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const bucket = new gcp.storage.Bucket("bucket", {
name: "example-bucket",
location: "us-central1",
forceDestroy: true,
uniformBucketLevelAccess: true,
});
const catalog = new gcp.biglake.HiveCatalog("catalog", {
name: "tf_test_catalog_85794",
primaryLocation: "us-central1",
locationUri: pulumi.interpolate`gs://${bucket.name}`,
});
const database = new gcp.biglake.HiveDatabase("database", {
catalog: catalog.name,
name: "tf_test_database_21197",
locationUri: pulumi.interpolate`gs://${bucket.name}`,
});
const myHiveTable = new gcp.biglake.HiveTable("my_hive_table", {
catalog: catalog.name,
database: database.name,
name: "tf_test_table_52865",
description: "Hive table description",
storageDescriptor: {
columns: [
{
name: "col0",
type: "STRING",
comment: "column that will be deleted on update",
},
{
name: "col1",
type: "STRING",
comment: "first skewed column",
},
],
inputFormat: "org.apache.hadoop.mapred.TextInputFormat",
outputFormat: "org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat",
compressed: true,
numBuckets: 1,
bucketCols: ["bucket_col1"],
sortCols: [{
col: "col1",
order: 0,
}],
skewedInfo: {
skewedColNames: ["col1"],
skewedColValues: [{
values: ["val1"],
}],
skewedKeyValuesLocations: [{
values: ["val1"],
location: "gs://example-bucket/skewed_location_1",
}],
},
serdeInfo: {
name: "LazySimpleSerDe",
serializationLib: "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe",
},
parameters: {
key1: "value1",
},
storedAsSubDirs: false,
},
partitionKeys: [{
name: "dt",
type: "STRING",
comment: "date partition",
}],
parameters: {
key1: "value1",
},
});
import pulumi
import pulumi_gcp as gcp
bucket = gcp.storage.Bucket("bucket",
name="example-bucket",
location="us-central1",
force_destroy=True,
uniform_bucket_level_access=True)
catalog = gcp.biglake.HiveCatalog("catalog",
name="tf_test_catalog_85794",
primary_location="us-central1",
location_uri=bucket.name.apply(lambda name: f"gs://{name}"))
database = gcp.biglake.HiveDatabase("database",
catalog=catalog.name,
name="tf_test_database_21197",
location_uri=bucket.name.apply(lambda name: f"gs://{name}"))
my_hive_table = gcp.biglake.HiveTable("my_hive_table",
catalog=catalog.name,
database=database.name,
name="tf_test_table_52865",
description="Hive table description",
storage_descriptor={
"columns": [
{
"name": "col0",
"type": "STRING",
"comment": "column that will be deleted on update",
},
{
"name": "col1",
"type": "STRING",
"comment": "first skewed column",
},
],
"input_format": "org.apache.hadoop.mapred.TextInputFormat",
"output_format": "org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat",
"compressed": True,
"num_buckets": 1,
"bucket_cols": ["bucket_col1"],
"sort_cols": [{
"col": "col1",
"order": 0,
}],
"skewed_info": {
"skewed_col_names": ["col1"],
"skewed_col_values": [{
"values": ["val1"],
}],
"skewed_key_values_locations": [{
"values": ["val1"],
"location": "gs://example-bucket/skewed_location_1",
}],
},
"serde_info": {
"name": "LazySimpleSerDe",
"serialization_lib": "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe",
},
"parameters": {
"key1": "value1",
},
"stored_as_sub_dirs": False,
},
partition_keys=[{
"name": "dt",
"type": "STRING",
"comment": "date partition",
}],
parameters={
"key1": "value1",
})
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/biglake"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{
Name: pulumi.String("example-bucket"),
Location: pulumi.String("us-central1"),
ForceDestroy: pulumi.Bool(true),
UniformBucketLevelAccess: pulumi.Bool(true),
})
if err != nil {
return err
}
catalog, err := biglake.NewHiveCatalog(ctx, "catalog", &biglake.HiveCatalogArgs{
Name: pulumi.String("tf_test_catalog_85794"),
PrimaryLocation: pulumi.String("us-central1"),
LocationUri: bucket.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("gs://%v", name), nil
}).(pulumi.StringOutput),
})
if err != nil {
return err
}
database, err := biglake.NewHiveDatabase(ctx, "database", &biglake.HiveDatabaseArgs{
Catalog: catalog.Name,
Name: pulumi.String("tf_test_database_21197"),
LocationUri: bucket.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("gs://%v", name), nil
}).(pulumi.StringOutput),
})
if err != nil {
return err
}
_, err = biglake.NewHiveTable(ctx, "my_hive_table", &biglake.HiveTableArgs{
Catalog: catalog.Name,
Database: database.Name,
Name: pulumi.String("tf_test_table_52865"),
Description: pulumi.String("Hive table description"),
StorageDescriptor: &biglake.HiveTableStorageDescriptorArgs{
Columns: biglake.HiveTableStorageDescriptorColumnArray{
&biglake.HiveTableStorageDescriptorColumnArgs{
Name: pulumi.String("col0"),
Type: pulumi.String("STRING"),
Comment: pulumi.String("column that will be deleted on update"),
},
&biglake.HiveTableStorageDescriptorColumnArgs{
Name: pulumi.String("col1"),
Type: pulumi.String("STRING"),
Comment: pulumi.String("first skewed column"),
},
},
InputFormat: pulumi.String("org.apache.hadoop.mapred.TextInputFormat"),
OutputFormat: pulumi.String("org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat"),
Compressed: pulumi.Bool(true),
NumBuckets: pulumi.Int(1),
BucketCols: pulumi.StringArray{
pulumi.String("bucket_col1"),
},
SortCols: biglake.HiveTableStorageDescriptorSortColArray{
&biglake.HiveTableStorageDescriptorSortColArgs{
Col: pulumi.String("col1"),
Order: pulumi.Int(0),
},
},
SkewedInfo: &biglake.HiveTableStorageDescriptorSkewedInfoArgs{
SkewedColNames: pulumi.StringArray{
pulumi.String("col1"),
},
SkewedColValues: biglake.HiveTableStorageDescriptorSkewedInfoSkewedColValueArray{
&biglake.HiveTableStorageDescriptorSkewedInfoSkewedColValueArgs{
Values: pulumi.StringArray{
pulumi.String("val1"),
},
},
},
SkewedKeyValuesLocations: biglake.HiveTableStorageDescriptorSkewedInfoSkewedKeyValuesLocationArray{
&biglake.HiveTableStorageDescriptorSkewedInfoSkewedKeyValuesLocationArgs{
Values: pulumi.StringArray{
pulumi.String("val1"),
},
Location: pulumi.String("gs://example-bucket/skewed_location_1"),
},
},
},
SerdeInfo: &biglake.HiveTableStorageDescriptorSerdeInfoArgs{
Name: pulumi.String("LazySimpleSerDe"),
SerializationLib: pulumi.String("org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe"),
},
Parameters: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
StoredAsSubDirs: pulumi.Bool(false),
},
PartitionKeys: biglake.HiveTablePartitionKeyArray{
&biglake.HiveTablePartitionKeyArgs{
Name: pulumi.String("dt"),
Type: pulumi.String("STRING"),
Comment: pulumi.String("date partition"),
},
},
Parameters: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var bucket = new Gcp.Storage.Bucket("bucket", new()
{
Name = "example-bucket",
Location = "us-central1",
ForceDestroy = true,
UniformBucketLevelAccess = true,
});
var catalog = new Gcp.BigLake.HiveCatalog("catalog", new()
{
Name = "tf_test_catalog_85794",
PrimaryLocation = "us-central1",
LocationUri = bucket.Name.Apply(name => $"gs://{name}"),
});
var database = new Gcp.BigLake.HiveDatabase("database", new()
{
Catalog = catalog.Name,
Name = "tf_test_database_21197",
LocationUri = bucket.Name.Apply(name => $"gs://{name}"),
});
var myHiveTable = new Gcp.BigLake.HiveTable("my_hive_table", new()
{
Catalog = catalog.Name,
Database = database.Name,
Name = "tf_test_table_52865",
Description = "Hive table description",
StorageDescriptor = new Gcp.BigLake.Inputs.HiveTableStorageDescriptorArgs
{
Columns = new[]
{
new Gcp.BigLake.Inputs.HiveTableStorageDescriptorColumnArgs
{
Name = "col0",
Type = "STRING",
Comment = "column that will be deleted on update",
},
new Gcp.BigLake.Inputs.HiveTableStorageDescriptorColumnArgs
{
Name = "col1",
Type = "STRING",
Comment = "first skewed column",
},
},
InputFormat = "org.apache.hadoop.mapred.TextInputFormat",
OutputFormat = "org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat",
Compressed = true,
NumBuckets = 1,
BucketCols = new[]
{
"bucket_col1",
},
SortCols = new[]
{
new Gcp.BigLake.Inputs.HiveTableStorageDescriptorSortColArgs
{
Col = "col1",
Order = 0,
},
},
SkewedInfo = new Gcp.BigLake.Inputs.HiveTableStorageDescriptorSkewedInfoArgs
{
SkewedColNames = new[]
{
"col1",
},
SkewedColValues = new[]
{
new Gcp.BigLake.Inputs.HiveTableStorageDescriptorSkewedInfoSkewedColValueArgs
{
Values = new[]
{
"val1",
},
},
},
SkewedKeyValuesLocations = new[]
{
new Gcp.BigLake.Inputs.HiveTableStorageDescriptorSkewedInfoSkewedKeyValuesLocationArgs
{
Values = new[]
{
"val1",
},
Location = "gs://example-bucket/skewed_location_1",
},
},
},
SerdeInfo = new Gcp.BigLake.Inputs.HiveTableStorageDescriptorSerdeInfoArgs
{
Name = "LazySimpleSerDe",
SerializationLib = "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe",
},
Parameters =
{
{ "key1", "value1" },
},
StoredAsSubDirs = false,
},
PartitionKeys = new[]
{
new Gcp.BigLake.Inputs.HiveTablePartitionKeyArgs
{
Name = "dt",
Type = "STRING",
Comment = "date partition",
},
},
Parameters =
{
{ "key1", "value1" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.storage.Bucket;
import com.pulumi.gcp.storage.BucketArgs;
import com.pulumi.gcp.biglake.HiveCatalog;
import com.pulumi.gcp.biglake.HiveCatalogArgs;
import com.pulumi.gcp.biglake.HiveDatabase;
import com.pulumi.gcp.biglake.HiveDatabaseArgs;
import com.pulumi.gcp.biglake.HiveTable;
import com.pulumi.gcp.biglake.HiveTableArgs;
import com.pulumi.gcp.biglake.inputs.HiveTableStorageDescriptorArgs;
import com.pulumi.gcp.biglake.inputs.HiveTableStorageDescriptorColumnArgs;
import com.pulumi.gcp.biglake.inputs.HiveTableStorageDescriptorSortColArgs;
import com.pulumi.gcp.biglake.inputs.HiveTableStorageDescriptorSkewedInfoArgs;
import com.pulumi.gcp.biglake.inputs.HiveTableStorageDescriptorSkewedInfoSkewedColValueArgs;
import com.pulumi.gcp.biglake.inputs.HiveTableStorageDescriptorSkewedInfoSkewedKeyValuesLocationArgs;
import com.pulumi.gcp.biglake.inputs.HiveTableStorageDescriptorSerdeInfoArgs;
import com.pulumi.gcp.biglake.inputs.HiveTablePartitionKeyArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var bucket = new Bucket("bucket", BucketArgs.builder()
.name("example-bucket")
.location("us-central1")
.forceDestroy(true)
.uniformBucketLevelAccess(true)
.build());
var catalog = new HiveCatalog("catalog", HiveCatalogArgs.builder()
.name("tf_test_catalog_85794")
.primaryLocation("us-central1")
.locationUri(bucket.name().applyValue(_name -> String.format("gs://%s", _name)))
.build());
var database = new HiveDatabase("database", HiveDatabaseArgs.builder()
.catalog(catalog.name())
.name("tf_test_database_21197")
.locationUri(bucket.name().applyValue(_name -> String.format("gs://%s", _name)))
.build());
var myHiveTable = new HiveTable("myHiveTable", HiveTableArgs.builder()
.catalog(catalog.name())
.database(database.name())
.name("tf_test_table_52865")
.description("Hive table description")
.storageDescriptor(HiveTableStorageDescriptorArgs.builder()
.columns(
HiveTableStorageDescriptorColumnArgs.builder()
.name("col0")
.type("STRING")
.comment("column that will be deleted on update")
.build(),
HiveTableStorageDescriptorColumnArgs.builder()
.name("col1")
.type("STRING")
.comment("first skewed column")
.build())
.inputFormat("org.apache.hadoop.mapred.TextInputFormat")
.outputFormat("org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat")
.compressed(true)
.numBuckets(1)
.bucketCols("bucket_col1")
.sortCols(HiveTableStorageDescriptorSortColArgs.builder()
.col("col1")
.order(0)
.build())
.skewedInfo(HiveTableStorageDescriptorSkewedInfoArgs.builder()
.skewedColNames("col1")
.skewedColValues(HiveTableStorageDescriptorSkewedInfoSkewedColValueArgs.builder()
.values("val1")
.build())
.skewedKeyValuesLocations(HiveTableStorageDescriptorSkewedInfoSkewedKeyValuesLocationArgs.builder()
.values("val1")
.location("gs://example-bucket/skewed_location_1")
.build())
.build())
.serdeInfo(HiveTableStorageDescriptorSerdeInfoArgs.builder()
.name("LazySimpleSerDe")
.serializationLib("org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe")
.build())
.parameters(Map.of("key1", "value1"))
.storedAsSubDirs(false)
.build())
.partitionKeys(HiveTablePartitionKeyArgs.builder()
.name("dt")
.type("STRING")
.comment("date partition")
.build())
.parameters(Map.of("key1", "value1"))
.build());
}
}
resources:
bucket:
type: gcp:storage:Bucket
properties:
name: example-bucket
location: us-central1
forceDestroy: true
uniformBucketLevelAccess: true
catalog:
type: gcp:biglake:HiveCatalog
properties:
name: tf_test_catalog_85794
primaryLocation: us-central1
locationUri: gs://${bucket.name}
database:
type: gcp:biglake:HiveDatabase
properties:
catalog: ${catalog.name}
name: tf_test_database_21197
locationUri: gs://${bucket.name}
myHiveTable:
type: gcp:biglake:HiveTable
name: my_hive_table
properties:
catalog: ${catalog.name}
database: ${database.name}
name: tf_test_table_52865
description: Hive table description
storageDescriptor:
columns:
- name: col0
type: STRING
comment: column that will be deleted on update
- name: col1
type: STRING
comment: first skewed column
inputFormat: org.apache.hadoop.mapred.TextInputFormat
outputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
compressed: true
numBuckets: 1
bucketCols:
- bucket_col1
sortCols:
- col: col1
order: 0
skewedInfo:
skewedColNames:
- col1
skewedColValues:
- values:
- val1
skewedKeyValuesLocations:
- values:
- val1
location: gs://example-bucket/skewed_location_1
serdeInfo:
name: LazySimpleSerDe
serializationLib: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
parameters:
key1: value1
storedAsSubDirs: false
partitionKeys:
- name: dt
type: STRING
comment: date partition
parameters:
key1: value1
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_storage_bucket" "bucket" {
name = "example-bucket"
location = "us-central1"
force_destroy = true
uniform_bucket_level_access = true
}
resource "gcp_biglake_hivecatalog" "catalog" {
name = "tf_test_catalog_85794"
primary_location = "us-central1"
location_uri ="gs://${gcp_storage_bucket.bucket.name}"
}
resource "gcp_biglake_hivedatabase" "database" {
catalog = gcp_biglake_hivecatalog.catalog.name
name = "tf_test_database_21197"
location_uri ="gs://${gcp_storage_bucket.bucket.name}"
}
resource "gcp_biglake_hivetable" "my_hive_table" {
catalog = gcp_biglake_hivecatalog.catalog.name
database = gcp_biglake_hivedatabase.database.name
name = "tf_test_table_52865"
description = "Hive table description"
storage_descriptor = {
columns = [{
"name" = "col0"
"type" = "STRING"
"comment" = "column that will be deleted on update"
}, {
"name" = "col1"
"type" = "STRING"
"comment" = "first skewed column"
}]
input_format = "org.apache.hadoop.mapred.TextInputFormat"
output_format = "org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat"
compressed = true
num_buckets = 1
bucket_cols = ["bucket_col1"]
sort_cols = [{
"col" = "col1"
"order" = 0
}]
skewed_info = {
skewed_col_names = ["col1"]
skewed_col_values = [{
"values" = ["val1"]
}]
skewed_key_values_locations = [{
"values" = ["val1"]
"location" = "gs://example-bucket/skewed_location_1"
}]
}
serde_info = {
name = "LazySimpleSerDe"
serialization_lib = "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe"
}
parameters = {
"key1" = "value1"
}
stored_as_sub_dirs = false
}
partition_keys {
name = "dt"
type = "STRING"
comment = "date partition"
}
parameters = {
"key1" = "value1"
}
}
Create HiveTable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HiveTable(name: string, args: HiveTableArgs, opts?: CustomResourceOptions);@overload
def HiveTable(resource_name: str,
args: HiveTableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HiveTable(resource_name: str,
opts: Optional[ResourceOptions] = None,
catalog: Optional[str] = None,
database: Optional[str] = None,
storage_descriptor: Optional[HiveTableStorageDescriptorArgs] = None,
deletion_policy: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
parameters: Optional[Mapping[str, str]] = None,
partition_keys: Optional[Sequence[HiveTablePartitionKeyArgs]] = None,
project: Optional[str] = None,
view_expanded_text: Optional[str] = None,
view_original_text: Optional[str] = None)func NewHiveTable(ctx *Context, name string, args HiveTableArgs, opts ...ResourceOption) (*HiveTable, error)public HiveTable(string name, HiveTableArgs args, CustomResourceOptions? opts = null)
public HiveTable(String name, HiveTableArgs args)
public HiveTable(String name, HiveTableArgs args, CustomResourceOptions options)
type: gcp:biglake:HiveTable
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcp_biglake_hive_table" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args HiveTableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HiveTableArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HiveTableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HiveTableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HiveTableArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var hiveTableResource = new Gcp.BigLake.HiveTable("hiveTableResource", new()
{
Catalog = "string",
Database = "string",
StorageDescriptor = new Gcp.BigLake.Inputs.HiveTableStorageDescriptorArgs
{
Columns = new[]
{
new Gcp.BigLake.Inputs.HiveTableStorageDescriptorColumnArgs
{
Name = "string",
Type = "string",
Comment = "string",
},
},
BucketCols = new[]
{
"string",
},
Compressed = false,
InputFormat = "string",
LocationUri = "string",
NumBuckets = 0,
OutputFormat = "string",
Parameters =
{
{ "string", "string" },
},
SerdeInfo = new Gcp.BigLake.Inputs.HiveTableStorageDescriptorSerdeInfoArgs
{
Name = "string",
SerializationLib = "string",
Description = "string",
DeserializerClass = "string",
Parameters =
{
{ "string", "string" },
},
SerdeType = "string",
SerializerClass = "string",
},
SkewedInfo = new Gcp.BigLake.Inputs.HiveTableStorageDescriptorSkewedInfoArgs
{
SkewedColNames = new[]
{
"string",
},
SkewedColValues = new[]
{
new Gcp.BigLake.Inputs.HiveTableStorageDescriptorSkewedInfoSkewedColValueArgs
{
Values = new[]
{
"string",
},
},
},
SkewedKeyValuesLocations = new[]
{
new Gcp.BigLake.Inputs.HiveTableStorageDescriptorSkewedInfoSkewedKeyValuesLocationArgs
{
Location = "string",
Values = new[]
{
"string",
},
},
},
},
SortCols = new[]
{
new Gcp.BigLake.Inputs.HiveTableStorageDescriptorSortColArgs
{
Col = "string",
Order = 0,
},
},
StoredAsSubDirs = false,
},
DeletionPolicy = "string",
Description = "string",
Name = "string",
Parameters =
{
{ "string", "string" },
},
PartitionKeys = new[]
{
new Gcp.BigLake.Inputs.HiveTablePartitionKeyArgs
{
Name = "string",
Type = "string",
Comment = "string",
},
},
Project = "string",
ViewExpandedText = "string",
ViewOriginalText = "string",
});
example, err := biglake.NewHiveTable(ctx, "hiveTableResource", &biglake.HiveTableArgs{
Catalog: pulumi.String("string"),
Database: pulumi.String("string"),
StorageDescriptor: &biglake.HiveTableStorageDescriptorArgs{
Columns: biglake.HiveTableStorageDescriptorColumnArray{
&biglake.HiveTableStorageDescriptorColumnArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Comment: pulumi.String("string"),
},
},
BucketCols: pulumi.StringArray{
pulumi.String("string"),
},
Compressed: pulumi.Bool(false),
InputFormat: pulumi.String("string"),
LocationUri: pulumi.String("string"),
NumBuckets: pulumi.Int(0),
OutputFormat: pulumi.String("string"),
Parameters: pulumi.StringMap{
"string": pulumi.String("string"),
},
SerdeInfo: &biglake.HiveTableStorageDescriptorSerdeInfoArgs{
Name: pulumi.String("string"),
SerializationLib: pulumi.String("string"),
Description: pulumi.String("string"),
DeserializerClass: pulumi.String("string"),
Parameters: pulumi.StringMap{
"string": pulumi.String("string"),
},
SerdeType: pulumi.String("string"),
SerializerClass: pulumi.String("string"),
},
SkewedInfo: &biglake.HiveTableStorageDescriptorSkewedInfoArgs{
SkewedColNames: pulumi.StringArray{
pulumi.String("string"),
},
SkewedColValues: biglake.HiveTableStorageDescriptorSkewedInfoSkewedColValueArray{
&biglake.HiveTableStorageDescriptorSkewedInfoSkewedColValueArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
SkewedKeyValuesLocations: biglake.HiveTableStorageDescriptorSkewedInfoSkewedKeyValuesLocationArray{
&biglake.HiveTableStorageDescriptorSkewedInfoSkewedKeyValuesLocationArgs{
Location: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
SortCols: biglake.HiveTableStorageDescriptorSortColArray{
&biglake.HiveTableStorageDescriptorSortColArgs{
Col: pulumi.String("string"),
Order: pulumi.Int(0),
},
},
StoredAsSubDirs: pulumi.Bool(false),
},
DeletionPolicy: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Parameters: pulumi.StringMap{
"string": pulumi.String("string"),
},
PartitionKeys: biglake.HiveTablePartitionKeyArray{
&biglake.HiveTablePartitionKeyArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Comment: pulumi.String("string"),
},
},
Project: pulumi.String("string"),
ViewExpandedText: pulumi.String("string"),
ViewOriginalText: pulumi.String("string"),
})
resource "gcp_biglake_hive_table" "hiveTableResource" {
lifecycle {
create_before_destroy = true
}
catalog = "string"
database = "string"
storage_descriptor = {
columns = [{
name = "string"
type = "string"
comment = "string"
}]
bucket_cols = ["string"]
compressed = false
input_format = "string"
location_uri = "string"
num_buckets = 0
output_format = "string"
parameters = {
"string" = "string"
}
serde_info = {
name = "string"
serialization_lib = "string"
description = "string"
deserializer_class = "string"
parameters = {
"string" = "string"
}
serde_type = "string"
serializer_class = "string"
}
skewed_info = {
skewed_col_names = ["string"]
skewed_col_values = [{
values = ["string"]
}]
skewed_key_values_locations = [{
location = "string"
values = ["string"]
}]
}
sort_cols = [{
col = "string"
order = 0
}]
stored_as_sub_dirs = false
}
deletion_policy = "string"
description = "string"
name = "string"
parameters = {
"string" = "string"
}
partition_keys {
name = "string"
type = "string"
comment = "string"
}
project = "string"
view_expanded_text = "string"
view_original_text = "string"
}
var hiveTableResource = new HiveTable("hiveTableResource", HiveTableArgs.builder()
.catalog("string")
.database("string")
.storageDescriptor(HiveTableStorageDescriptorArgs.builder()
.columns(HiveTableStorageDescriptorColumnArgs.builder()
.name("string")
.type("string")
.comment("string")
.build())
.bucketCols("string")
.compressed(false)
.inputFormat("string")
.locationUri("string")
.numBuckets(0)
.outputFormat("string")
.parameters(Map.of("string", "string"))
.serdeInfo(HiveTableStorageDescriptorSerdeInfoArgs.builder()
.name("string")
.serializationLib("string")
.description("string")
.deserializerClass("string")
.parameters(Map.of("string", "string"))
.serdeType("string")
.serializerClass("string")
.build())
.skewedInfo(HiveTableStorageDescriptorSkewedInfoArgs.builder()
.skewedColNames("string")
.skewedColValues(HiveTableStorageDescriptorSkewedInfoSkewedColValueArgs.builder()
.values("string")
.build())
.skewedKeyValuesLocations(HiveTableStorageDescriptorSkewedInfoSkewedKeyValuesLocationArgs.builder()
.location("string")
.values("string")
.build())
.build())
.sortCols(HiveTableStorageDescriptorSortColArgs.builder()
.col("string")
.order(0)
.build())
.storedAsSubDirs(false)
.build())
.deletionPolicy("string")
.description("string")
.name("string")
.parameters(Map.of("string", "string"))
.partitionKeys(HiveTablePartitionKeyArgs.builder()
.name("string")
.type("string")
.comment("string")
.build())
.project("string")
.viewExpandedText("string")
.viewOriginalText("string")
.build());
hive_table_resource = gcp.biglake.HiveTable("hiveTableResource",
catalog="string",
database="string",
storage_descriptor={
"columns": [{
"name": "string",
"type": "string",
"comment": "string",
}],
"bucket_cols": ["string"],
"compressed": False,
"input_format": "string",
"location_uri": "string",
"num_buckets": 0,
"output_format": "string",
"parameters": {
"string": "string",
},
"serde_info": {
"name": "string",
"serialization_lib": "string",
"description": "string",
"deserializer_class": "string",
"parameters": {
"string": "string",
},
"serde_type": "string",
"serializer_class": "string",
},
"skewed_info": {
"skewed_col_names": ["string"],
"skewed_col_values": [{
"values": ["string"],
}],
"skewed_key_values_locations": [{
"location": "string",
"values": ["string"],
}],
},
"sort_cols": [{
"col": "string",
"order": 0,
}],
"stored_as_sub_dirs": False,
},
deletion_policy="string",
description="string",
name="string",
parameters={
"string": "string",
},
partition_keys=[{
"name": "string",
"type": "string",
"comment": "string",
}],
project="string",
view_expanded_text="string",
view_original_text="string")
const hiveTableResource = new gcp.biglake.HiveTable("hiveTableResource", {
catalog: "string",
database: "string",
storageDescriptor: {
columns: [{
name: "string",
type: "string",
comment: "string",
}],
bucketCols: ["string"],
compressed: false,
inputFormat: "string",
locationUri: "string",
numBuckets: 0,
outputFormat: "string",
parameters: {
string: "string",
},
serdeInfo: {
name: "string",
serializationLib: "string",
description: "string",
deserializerClass: "string",
parameters: {
string: "string",
},
serdeType: "string",
serializerClass: "string",
},
skewedInfo: {
skewedColNames: ["string"],
skewedColValues: [{
values: ["string"],
}],
skewedKeyValuesLocations: [{
location: "string",
values: ["string"],
}],
},
sortCols: [{
col: "string",
order: 0,
}],
storedAsSubDirs: false,
},
deletionPolicy: "string",
description: "string",
name: "string",
parameters: {
string: "string",
},
partitionKeys: [{
name: "string",
type: "string",
comment: "string",
}],
project: "string",
viewExpandedText: "string",
viewOriginalText: "string",
});
type: gcp:biglake:HiveTable
properties:
catalog: string
database: string
deletionPolicy: string
description: string
name: string
parameters:
string: string
partitionKeys:
- comment: string
name: string
type: string
project: string
storageDescriptor:
bucketCols:
- string
columns:
- comment: string
name: string
type: string
compressed: false
inputFormat: string
locationUri: string
numBuckets: 0
outputFormat: string
parameters:
string: string
serdeInfo:
description: string
deserializerClass: string
name: string
parameters:
string: string
serdeType: string
serializationLib: string
serializerClass: string
skewedInfo:
skewedColNames:
- string
skewedColValues:
- values:
- string
skewedKeyValuesLocations:
- location: string
values:
- string
sortCols:
- col: string
order: 0
storedAsSubDirs: false
viewExpandedText: string
viewOriginalText: string
HiveTable Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The HiveTable resource accepts the following input properties:
- Catalog string
- The Hive catalog where the table is located.
- Database string
- The Hive database where the table is located.
- Storage
Descriptor HiveTable Storage Descriptor - Storage descriptor of the table. Structure is documented below.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- Description of the table.
- Name string
- The name of the table.
- Parameters Dictionary<string, string>
- Additional parameters associated with the table.
- Partition
Keys List<HiveTable Partition Key> - Partition keys of the table. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- View
Expanded stringText - Expanded view text for Hive views. Empty for non-view.
- View
Original stringText - Original view text for Hive views. Empty for non-view.
- Catalog string
- The Hive catalog where the table is located.
- Database string
- The Hive database where the table is located.
- Storage
Descriptor HiveTable Storage Descriptor Args - Storage descriptor of the table. Structure is documented below.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- Description of the table.
- Name string
- The name of the table.
- Parameters map[string]string
- Additional parameters associated with the table.
- Partition
Keys []HiveTable Partition Key Args - Partition keys of the table. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- View
Expanded stringText - Expanded view text for Hive views. Empty for non-view.
- View
Original stringText - Original view text for Hive views. Empty for non-view.
- catalog string
- The Hive catalog where the table is located.
- database string
- The Hive database where the table is located.
- storage_
descriptor object - Storage descriptor of the table. Structure is documented below.
- deletion_
policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- Description of the table.
- name string
- The name of the table.
- parameters map(string)
- Additional parameters associated with the table.
- partition_
keys list(object) - Partition keys of the table. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- view_
expanded_ stringtext - Expanded view text for Hive views. Empty for non-view.
- view_
original_ stringtext - Original view text for Hive views. Empty for non-view.
- catalog String
- The Hive catalog where the table is located.
- database String
- The Hive database where the table is located.
- storage
Descriptor HiveTable Storage Descriptor - Storage descriptor of the table. Structure is documented below.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- Description of the table.
- name String
- The name of the table.
- parameters Map<String,String>
- Additional parameters associated with the table.
- partition
Keys List<HiveTable Partition Key> - Partition keys of the table. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- view
Expanded StringText - Expanded view text for Hive views. Empty for non-view.
- view
Original StringText - Original view text for Hive views. Empty for non-view.
- catalog string
- The Hive catalog where the table is located.
- database string
- The Hive database where the table is located.
- storage
Descriptor HiveTable Storage Descriptor - Storage descriptor of the table. Structure is documented below.
- deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- Description of the table.
- name string
- The name of the table.
- parameters {[key: string]: string}
- Additional parameters associated with the table.
- partition
Keys HiveTable Partition Key[] - Partition keys of the table. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- view
Expanded stringText - Expanded view text for Hive views. Empty for non-view.
- view
Original stringText - Original view text for Hive views. Empty for non-view.
- catalog str
- The Hive catalog where the table is located.
- database str
- The Hive database where the table is located.
- storage_
descriptor HiveTable Storage Descriptor Args - Storage descriptor of the table. Structure is documented below.
- deletion_
policy str - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description str
- Description of the table.
- name str
- The name of the table.
- parameters Mapping[str, str]
- Additional parameters associated with the table.
- partition_
keys Sequence[HiveTable Partition Key Args] - Partition keys of the table. Structure is documented below.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- view_
expanded_ strtext - Expanded view text for Hive views. Empty for non-view.
- view_
original_ strtext - Original view text for Hive views. Empty for non-view.
- catalog String
- The Hive catalog where the table is located.
- database String
- The Hive database where the table is located.
- storage
Descriptor Property Map - Storage descriptor of the table. Structure is documented below.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- Description of the table.
- name String
- The name of the table.
- parameters Map<String>
- Additional parameters associated with the table.
- partition
Keys List<Property Map> - Partition keys of the table. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- view
Expanded StringText - Expanded view text for Hive views. Empty for non-view.
- view
Original StringText - Original view text for Hive views. Empty for non-view.
Outputs
All input properties are implicitly available as output properties. Additionally, the HiveTable resource produces the following output properties:
- Create
Time string - Output only. The creation time of the table.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Access stringTime - Output only. Last access time of the table.
- Table
Type string - Output only. The type of the table.
- Update
Time string - Output only. The update time of the table
- Create
Time string - Output only. The creation time of the table.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Access stringTime - Output only. Last access time of the table.
- Table
Type string - Output only. The type of the table.
- Update
Time string - Output only. The update time of the table
- create_
time string - Output only. The creation time of the table.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
access_ stringtime - Output only. Last access time of the table.
- table_
type string - Output only. The type of the table.
- update_
time string - Output only. The update time of the table
- create
Time String - Output only. The creation time of the table.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Access StringTime - Output only. Last access time of the table.
- table
Type String - Output only. The type of the table.
- update
Time String - Output only. The update time of the table
- create
Time string - Output only. The creation time of the table.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Access stringTime - Output only. Last access time of the table.
- table
Type string - Output only. The type of the table.
- update
Time string - Output only. The update time of the table
- create_
time str - Output only. The creation time of the table.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
access_ strtime - Output only. Last access time of the table.
- table_
type str - Output only. The type of the table.
- update_
time str - Output only. The update time of the table
- create
Time String - Output only. The creation time of the table.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Access StringTime - Output only. Last access time of the table.
- table
Type String - Output only. The type of the table.
- update
Time String - Output only. The update time of the table
Look up Existing HiveTable Resource
Get an existing HiveTable resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HiveTableState, opts?: CustomResourceOptions): HiveTable@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
catalog: Optional[str] = None,
create_time: Optional[str] = None,
database: Optional[str] = None,
deletion_policy: Optional[str] = None,
description: Optional[str] = None,
last_access_time: Optional[str] = None,
name: Optional[str] = None,
parameters: Optional[Mapping[str, str]] = None,
partition_keys: Optional[Sequence[HiveTablePartitionKeyArgs]] = None,
project: Optional[str] = None,
storage_descriptor: Optional[HiveTableStorageDescriptorArgs] = None,
table_type: Optional[str] = None,
update_time: Optional[str] = None,
view_expanded_text: Optional[str] = None,
view_original_text: Optional[str] = None) -> HiveTablefunc GetHiveTable(ctx *Context, name string, id IDInput, state *HiveTableState, opts ...ResourceOption) (*HiveTable, error)public static HiveTable Get(string name, Input<string> id, HiveTableState? state, CustomResourceOptions? opts = null)public static HiveTable get(String name, Output<String> id, HiveTableState state, CustomResourceOptions options)resources: _: type: gcp:biglake:HiveTable get: id: ${id}import {
to = gcp_biglake_hive_table.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Catalog string
- The Hive catalog where the table is located.
- Create
Time string - Output only. The creation time of the table.
- Database string
- The Hive database where the table is located.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- Description of the table.
- Last
Access stringTime - Output only. Last access time of the table.
- Name string
- The name of the table.
- Parameters Dictionary<string, string>
- Additional parameters associated with the table.
- Partition
Keys List<HiveTable Partition Key> - Partition keys of the table. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Storage
Descriptor HiveTable Storage Descriptor - Storage descriptor of the table. Structure is documented below.
- Table
Type string - Output only. The type of the table.
- Update
Time string - Output only. The update time of the table
- View
Expanded stringText - Expanded view text for Hive views. Empty for non-view.
- View
Original stringText - Original view text for Hive views. Empty for non-view.
- Catalog string
- The Hive catalog where the table is located.
- Create
Time string - Output only. The creation time of the table.
- Database string
- The Hive database where the table is located.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- Description of the table.
- Last
Access stringTime - Output only. Last access time of the table.
- Name string
- The name of the table.
- Parameters map[string]string
- Additional parameters associated with the table.
- Partition
Keys []HiveTable Partition Key Args - Partition keys of the table. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Storage
Descriptor HiveTable Storage Descriptor Args - Storage descriptor of the table. Structure is documented below.
- Table
Type string - Output only. The type of the table.
- Update
Time string - Output only. The update time of the table
- View
Expanded stringText - Expanded view text for Hive views. Empty for non-view.
- View
Original stringText - Original view text for Hive views. Empty for non-view.
- catalog string
- The Hive catalog where the table is located.
- create_
time string - Output only. The creation time of the table.
- database string
- The Hive database where the table is located.
- deletion_
policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- Description of the table.
- last_
access_ stringtime - Output only. Last access time of the table.
- name string
- The name of the table.
- parameters map(string)
- Additional parameters associated with the table.
- partition_
keys list(object) - Partition keys of the table. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- storage_
descriptor object - Storage descriptor of the table. Structure is documented below.
- table_
type string - Output only. The type of the table.
- update_
time string - Output only. The update time of the table
- view_
expanded_ stringtext - Expanded view text for Hive views. Empty for non-view.
- view_
original_ stringtext - Original view text for Hive views. Empty for non-view.
- catalog String
- The Hive catalog where the table is located.
- create
Time String - Output only. The creation time of the table.
- database String
- The Hive database where the table is located.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- Description of the table.
- last
Access StringTime - Output only. Last access time of the table.
- name String
- The name of the table.
- parameters Map<String,String>
- Additional parameters associated with the table.
- partition
Keys List<HiveTable Partition Key> - Partition keys of the table. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- storage
Descriptor HiveTable Storage Descriptor - Storage descriptor of the table. Structure is documented below.
- table
Type String - Output only. The type of the table.
- update
Time String - Output only. The update time of the table
- view
Expanded StringText - Expanded view text for Hive views. Empty for non-view.
- view
Original StringText - Original view text for Hive views. Empty for non-view.
- catalog string
- The Hive catalog where the table is located.
- create
Time string - Output only. The creation time of the table.
- database string
- The Hive database where the table is located.
- deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- Description of the table.
- last
Access stringTime - Output only. Last access time of the table.
- name string
- The name of the table.
- parameters {[key: string]: string}
- Additional parameters associated with the table.
- partition
Keys HiveTable Partition Key[] - Partition keys of the table. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- storage
Descriptor HiveTable Storage Descriptor - Storage descriptor of the table. Structure is documented below.
- table
Type string - Output only. The type of the table.
- update
Time string - Output only. The update time of the table
- view
Expanded stringText - Expanded view text for Hive views. Empty for non-view.
- view
Original stringText - Original view text for Hive views. Empty for non-view.
- catalog str
- The Hive catalog where the table is located.
- create_
time str - Output only. The creation time of the table.
- database str
- The Hive database where the table is located.
- deletion_
policy str - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description str
- Description of the table.
- last_
access_ strtime - Output only. Last access time of the table.
- name str
- The name of the table.
- parameters Mapping[str, str]
- Additional parameters associated with the table.
- partition_
keys Sequence[HiveTable Partition Key Args] - Partition keys of the table. Structure is documented below.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- storage_
descriptor HiveTable Storage Descriptor Args - Storage descriptor of the table. Structure is documented below.
- table_
type str - Output only. The type of the table.
- update_
time str - Output only. The update time of the table
- view_
expanded_ strtext - Expanded view text for Hive views. Empty for non-view.
- view_
original_ strtext - Original view text for Hive views. Empty for non-view.
- catalog String
- The Hive catalog where the table is located.
- create
Time String - Output only. The creation time of the table.
- database String
- The Hive database where the table is located.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- Description of the table.
- last
Access StringTime - Output only. Last access time of the table.
- name String
- The name of the table.
- parameters Map<String>
- Additional parameters associated with the table.
- partition
Keys List<Property Map> - Partition keys of the table. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- storage
Descriptor Property Map - Storage descriptor of the table. Structure is documented below.
- table
Type String - Output only. The type of the table.
- update
Time String - Output only. The update time of the table
- view
Expanded StringText - Expanded view text for Hive views. Empty for non-view.
- view
Original StringText - Original view text for Hive views. Empty for non-view.
Supporting Types
HiveTablePartitionKey, HiveTablePartitionKeyArgs
HiveTableStorageDescriptor, HiveTableStorageDescriptorArgs
- Columns
List<Hive
Table Storage Descriptor Column> - Specifies the columns of the table (the schema). Structure is documented below.
- Bucket
Cols List<string> - Reducer grouping columns, clustering columns, and bucketing columns.
- Compressed bool
- Whether the table data is compressed.
- Input
Format string - The fully qualified Java class name of the input format.
- Location
Uri string - The Cloud Storage URI where the table data is located.
- Num
Buckets int - The number of buckets in the table.
- Output
Format string - The fully qualified Java class name of the output format.
- Parameters Dictionary<string, string>
- Key-value pairs for the storage descriptor.
- Serde
Info HiveTable Storage Descriptor Serde Info - Serialization and deserialization information. Structure is documented below.
- Skewed
Info HiveTable Storage Descriptor Skewed Info - Table data skew information. Structure is documented below.
- Sort
Cols List<HiveTable Storage Descriptor Sort Col> - Sort order of the data in each bucket. Structure is documented below.
- Stored
As boolSub Dirs - Whether the table is stored as sub directories.
- Columns
[]Hive
Table Storage Descriptor Column - Specifies the columns of the table (the schema). Structure is documented below.
- Bucket
Cols []string - Reducer grouping columns, clustering columns, and bucketing columns.
- Compressed bool
- Whether the table data is compressed.
- Input
Format string - The fully qualified Java class name of the input format.
- Location
Uri string - The Cloud Storage URI where the table data is located.
- Num
Buckets int - The number of buckets in the table.
- Output
Format string - The fully qualified Java class name of the output format.
- Parameters map[string]string
- Key-value pairs for the storage descriptor.
- Serde
Info HiveTable Storage Descriptor Serde Info - Serialization and deserialization information. Structure is documented below.
- Skewed
Info HiveTable Storage Descriptor Skewed Info - Table data skew information. Structure is documented below.
- Sort
Cols []HiveTable Storage Descriptor Sort Col - Sort order of the data in each bucket. Structure is documented below.
- Stored
As boolSub Dirs - Whether the table is stored as sub directories.
- columns list(object)
- Specifies the columns of the table (the schema). Structure is documented below.
- bucket_
cols list(string) - Reducer grouping columns, clustering columns, and bucketing columns.
- compressed bool
- Whether the table data is compressed.
- input_
format string - The fully qualified Java class name of the input format.
- location_
uri string - The Cloud Storage URI where the table data is located.
- num_
buckets number - The number of buckets in the table.
- output_
format string - The fully qualified Java class name of the output format.
- parameters map(string)
- Key-value pairs for the storage descriptor.
- serde_
info object - Serialization and deserialization information. Structure is documented below.
- skewed_
info object - Table data skew information. Structure is documented below.
- sort_
cols list(object) - Sort order of the data in each bucket. Structure is documented below.
- stored_
as_ boolsub_ dirs - Whether the table is stored as sub directories.
- columns
List<Hive
Table Storage Descriptor Column> - Specifies the columns of the table (the schema). Structure is documented below.
- bucket
Cols List<String> - Reducer grouping columns, clustering columns, and bucketing columns.
- compressed Boolean
- Whether the table data is compressed.
- input
Format String - The fully qualified Java class name of the input format.
- location
Uri String - The Cloud Storage URI where the table data is located.
- num
Buckets Integer - The number of buckets in the table.
- output
Format String - The fully qualified Java class name of the output format.
- parameters Map<String,String>
- Key-value pairs for the storage descriptor.
- serde
Info HiveTable Storage Descriptor Serde Info - Serialization and deserialization information. Structure is documented below.
- skewed
Info HiveTable Storage Descriptor Skewed Info - Table data skew information. Structure is documented below.
- sort
Cols List<HiveTable Storage Descriptor Sort Col> - Sort order of the data in each bucket. Structure is documented below.
- stored
As BooleanSub Dirs - Whether the table is stored as sub directories.
- columns
Hive
Table Storage Descriptor Column[] - Specifies the columns of the table (the schema). Structure is documented below.
- bucket
Cols string[] - Reducer grouping columns, clustering columns, and bucketing columns.
- compressed boolean
- Whether the table data is compressed.
- input
Format string - The fully qualified Java class name of the input format.
- location
Uri string - The Cloud Storage URI where the table data is located.
- num
Buckets number - The number of buckets in the table.
- output
Format string - The fully qualified Java class name of the output format.
- parameters {[key: string]: string}
- Key-value pairs for the storage descriptor.
- serde
Info HiveTable Storage Descriptor Serde Info - Serialization and deserialization information. Structure is documented below.
- skewed
Info HiveTable Storage Descriptor Skewed Info - Table data skew information. Structure is documented below.
- sort
Cols HiveTable Storage Descriptor Sort Col[] - Sort order of the data in each bucket. Structure is documented below.
- stored
As booleanSub Dirs - Whether the table is stored as sub directories.
- columns
Sequence[Hive
Table Storage Descriptor Column] - Specifies the columns of the table (the schema). Structure is documented below.
- bucket_
cols Sequence[str] - Reducer grouping columns, clustering columns, and bucketing columns.
- compressed bool
- Whether the table data is compressed.
- input_
format str - The fully qualified Java class name of the input format.
- location_
uri str - The Cloud Storage URI where the table data is located.
- num_
buckets int - The number of buckets in the table.
- output_
format str - The fully qualified Java class name of the output format.
- parameters Mapping[str, str]
- Key-value pairs for the storage descriptor.
- serde_
info HiveTable Storage Descriptor Serde Info - Serialization and deserialization information. Structure is documented below.
- skewed_
info HiveTable Storage Descriptor Skewed Info - Table data skew information. Structure is documented below.
- sort_
cols Sequence[HiveTable Storage Descriptor Sort Col] - Sort order of the data in each bucket. Structure is documented below.
- stored_
as_ boolsub_ dirs - Whether the table is stored as sub directories.
- columns List<Property Map>
- Specifies the columns of the table (the schema). Structure is documented below.
- bucket
Cols List<String> - Reducer grouping columns, clustering columns, and bucketing columns.
- compressed Boolean
- Whether the table data is compressed.
- input
Format String - The fully qualified Java class name of the input format.
- location
Uri String - The Cloud Storage URI where the table data is located.
- num
Buckets Number - The number of buckets in the table.
- output
Format String - The fully qualified Java class name of the output format.
- parameters Map<String>
- Key-value pairs for the storage descriptor.
- serde
Info Property Map - Serialization and deserialization information. Structure is documented below.
- skewed
Info Property Map - Table data skew information. Structure is documented below.
- sort
Cols List<Property Map> - Sort order of the data in each bucket. Structure is documented below.
- stored
As BooleanSub Dirs - Whether the table is stored as sub directories.
HiveTableStorageDescriptorColumn, HiveTableStorageDescriptorColumnArgs
HiveTableStorageDescriptorSerdeInfo, HiveTableStorageDescriptorSerdeInfoArgs
- Name string
- Name of the SerDe, table name by default.
- Serialization
Lib string - The fully qualified Java class name of the serialization library.
- Description string
- Description of the SerDe.
- Deserializer
Class string - The fully qualified Java class name of the deserializer.
- Parameters Dictionary<string, string>
- Parameters of the SerDe.
- Serde
Type string - The SerDe type.
Possible values are:
SERDE_TYPE_UNSPECIFIED,HIVE,SCHEMA_REGISTRY. - Serializer
Class string - The fully qualified Java class name of the serializer.
- Name string
- Name of the SerDe, table name by default.
- Serialization
Lib string - The fully qualified Java class name of the serialization library.
- Description string
- Description of the SerDe.
- Deserializer
Class string - The fully qualified Java class name of the deserializer.
- Parameters map[string]string
- Parameters of the SerDe.
- Serde
Type string - The SerDe type.
Possible values are:
SERDE_TYPE_UNSPECIFIED,HIVE,SCHEMA_REGISTRY. - Serializer
Class string - The fully qualified Java class name of the serializer.
- name string
- Name of the SerDe, table name by default.
- serialization_
lib string - The fully qualified Java class name of the serialization library.
- description string
- Description of the SerDe.
- deserializer_
class string - The fully qualified Java class name of the deserializer.
- parameters map(string)
- Parameters of the SerDe.
- serde_
type string - The SerDe type.
Possible values are:
SERDE_TYPE_UNSPECIFIED,HIVE,SCHEMA_REGISTRY. - serializer_
class string - The fully qualified Java class name of the serializer.
- name String
- Name of the SerDe, table name by default.
- serialization
Lib String - The fully qualified Java class name of the serialization library.
- description String
- Description of the SerDe.
- deserializer
Class String - The fully qualified Java class name of the deserializer.
- parameters Map<String,String>
- Parameters of the SerDe.
- serde
Type String - The SerDe type.
Possible values are:
SERDE_TYPE_UNSPECIFIED,HIVE,SCHEMA_REGISTRY. - serializer
Class String - The fully qualified Java class name of the serializer.
- name string
- Name of the SerDe, table name by default.
- serialization
Lib string - The fully qualified Java class name of the serialization library.
- description string
- Description of the SerDe.
- deserializer
Class string - The fully qualified Java class name of the deserializer.
- parameters {[key: string]: string}
- Parameters of the SerDe.
- serde
Type string - The SerDe type.
Possible values are:
SERDE_TYPE_UNSPECIFIED,HIVE,SCHEMA_REGISTRY. - serializer
Class string - The fully qualified Java class name of the serializer.
- name str
- Name of the SerDe, table name by default.
- serialization_
lib str - The fully qualified Java class name of the serialization library.
- description str
- Description of the SerDe.
- deserializer_
class str - The fully qualified Java class name of the deserializer.
- parameters Mapping[str, str]
- Parameters of the SerDe.
- serde_
type str - The SerDe type.
Possible values are:
SERDE_TYPE_UNSPECIFIED,HIVE,SCHEMA_REGISTRY. - serializer_
class str - The fully qualified Java class name of the serializer.
- name String
- Name of the SerDe, table name by default.
- serialization
Lib String - The fully qualified Java class name of the serialization library.
- description String
- Description of the SerDe.
- deserializer
Class String - The fully qualified Java class name of the deserializer.
- parameters Map<String>
- Parameters of the SerDe.
- serde
Type String - The SerDe type.
Possible values are:
SERDE_TYPE_UNSPECIFIED,HIVE,SCHEMA_REGISTRY. - serializer
Class String - The fully qualified Java class name of the serializer.
HiveTableStorageDescriptorSkewedInfo, HiveTableStorageDescriptorSkewedInfoArgs
- Skewed
Col List<string>Names - The column names that are skewed.
- Skewed
Col List<HiveValues Table Storage Descriptor Skewed Info Skewed Col Value> - The skewed column values. Structure is documented below.
- Skewed
Key List<HiveValues Locations Table Storage Descriptor Skewed Info Skewed Key Values Location> - The skewed key values locations. Structure is documented below.
- Skewed
Col []stringNames - The column names that are skewed.
- Skewed
Col []HiveValues Table Storage Descriptor Skewed Info Skewed Col Value - The skewed column values. Structure is documented below.
- Skewed
Key []HiveValues Locations Table Storage Descriptor Skewed Info Skewed Key Values Location - The skewed key values locations. Structure is documented below.
- skewed_
col_ list(string)names - The column names that are skewed.
- skewed_
col_ list(object)values - The skewed column values. Structure is documented below.
- skewed_
key_ list(object)values_ locations - The skewed key values locations. Structure is documented below.
- skewed
Col List<String>Names - The column names that are skewed.
- skewed
Col List<HiveValues Table Storage Descriptor Skewed Info Skewed Col Value> - The skewed column values. Structure is documented below.
- skewed
Key List<HiveValues Locations Table Storage Descriptor Skewed Info Skewed Key Values Location> - The skewed key values locations. Structure is documented below.
- skewed
Col string[]Names - The column names that are skewed.
- skewed
Col HiveValues Table Storage Descriptor Skewed Info Skewed Col Value[] - The skewed column values. Structure is documented below.
- skewed
Key HiveValues Locations Table Storage Descriptor Skewed Info Skewed Key Values Location[] - The skewed key values locations. Structure is documented below.
- skewed_
col_ Sequence[str]names - The column names that are skewed.
- skewed_
col_ Sequence[Hivevalues Table Storage Descriptor Skewed Info Skewed Col Value] - The skewed column values. Structure is documented below.
- skewed_
key_ Sequence[Hivevalues_ locations Table Storage Descriptor Skewed Info Skewed Key Values Location] - The skewed key values locations. Structure is documented below.
- skewed
Col List<String>Names - The column names that are skewed.
- skewed
Col List<Property Map>Values - The skewed column values. Structure is documented below.
- skewed
Key List<Property Map>Values Locations - The skewed key values locations. Structure is documented below.
HiveTableStorageDescriptorSkewedInfoSkewedColValue, HiveTableStorageDescriptorSkewedInfoSkewedColValueArgs
- Values List<string>
- (Required)
- Values []string
- (Required)
- values list(string)
- (Required)
- values List<String>
- (Required)
- values string[]
- (Required)
- values Sequence[str]
- (Required)
- values List<String>
- (Required)
HiveTableStorageDescriptorSkewedInfoSkewedKeyValuesLocation, HiveTableStorageDescriptorSkewedInfoSkewedKeyValuesLocationArgs
HiveTableStorageDescriptorSortCol, HiveTableStorageDescriptorSortColArgs
Import
HiveTable can be imported using any of these accepted formats:
hive/v1beta/projects/{{project}}/catalogs/{{catalog}}/databases/{{database}}/tables/{{name}}{{project}}/{{catalog}}/{{database}}/{{name}}{{catalog}}/{{database}}/{{name}}
When using the pulumi import command, HiveTable can be imported using one of the formats above. For example:
$ pulumi import gcp:biglake/hiveTable:HiveTable default hive/v1beta/projects/{{project}}/catalogs/{{catalog}}/databases/{{database}}/tables/{{name}}
$ pulumi import gcp:biglake/hiveTable:HiveTable default {{project}}/{{catalog}}/{{database}}/{{name}}
$ pulumi import gcp:biglake/hiveTable:HiveTable default {{catalog}}/{{database}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
published on Wednesday, Jul 29, 2026 by Pulumi