TableExternalDataConfigurationHivePartitioningOptionsArgs

data class TableExternalDataConfigurationHivePartitioningOptionsArgs(val mode: Output<String>? = null, val requirePartitionFilter: Output<Boolean>? = null, val sourceUriPrefix: Output<String>? = null) : ConvertibleToJava<TableExternalDataConfigurationHivePartitioningOptionsArgs>

Constructors

constructor(mode: Output<String>? = null, requirePartitionFilter: Output<Boolean>? = null, sourceUriPrefix: Output<String>? = null)

Properties

Link copied to clipboard
val mode: Output<String>? = null

When set, what mode of hive partitioning to use when reading data. The following modes are supported.

Link copied to clipboard
val requirePartitionFilter: Output<Boolean>? = null

If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.

Link copied to clipboard
val sourceUriPrefix: Output<String>? = null

When hive partition detection is requested, a common for all source uris must be required. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-06-01/country=USA/id=7/file.avro gs://bucket/path_to_table/dt=2019-05-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/. Note that when mode is set to CUSTOM, you must encode the partition key schema within the source_uri_prefix by setting source_uri_prefix to gs://bucket/path_to_table/{key1:TYPE1}/{key2:TYPE2}/{key3:TYPE3}.

Functions

Link copied to clipboard
open override fun toJava(): TableExternalDataConfigurationHivePartitioningOptionsArgs