- JSON representation
- BigQueryPartitioning
- IntegerRangePartition
- TimeUnitPartition
- PartitioningTimeGranularity
- IngestionTimePartition
- BigQueryClustering
A customization rule to apply to a set of objects.
| JSON representation |
|---|
{ // Union field |
rule
. The rule to apply. rule
can be only one of the following:bigqueryPartitioning
object (
BigQueryPartitioning
)
BigQuery partitioning rule.
bigqueryClustering
object (
BigQueryClustering
)
BigQuery clustering rule.
BigQueryPartitioning
BigQuery partitioning configuration.
| JSON representation |
|---|
{ "requirePartitionFilter" : boolean , // Union field |
requirePartitionFilter
boolean
Optional. If true, queries over the table require a partition filter.
partitioning
. Partitioning to apply on the table. partitioning
can be only one of the following:integerRangePartition
object (
IntegerRangePartition
)
Integer range partitioning.
timeUnitPartition
object (
TimeUnitPartition
)
Time unit column partitioning.
ingestionTimePartition
object (
IngestionTimePartition
)
Ingestion time partitioning.
IntegerRangePartition
Integer range partitioning. see https://cloud.google.com/bigquery/docs/partitioned-tables#integer_range
| JSON representation |
|---|
{ "column" : string , "start" : string , "end" : string , "interval" : string } |
| Fields | |
|---|---|
column
|
Required. The partitioning column. |
start
|
Required. The starting value for range partitioning (inclusive). |
end
|
Required. The ending value for range partitioning (exclusive). |
interval
|
Required. The interval of each range within the partition. |
TimeUnitPartition
Time unit column partitioning. see https://cloud.google.com/bigquery/docs/partitioned-tables#date_timestamp_partitioned_tables
| JSON representation |
|---|
{
"column"
:
string
,
"partitioningTimeGranularity"
:
enum (
|
| Fields | |
|---|---|
column
|
Required. The partitioning column. |
partitioningTimeGranularity
|
Optional. Partition granularity. |
PartitioningTimeGranularity
Partitioning granularity for time partitions.
| Enums | |
|---|---|
PARTITIONING_TIME_GRANULARITY_UNSPECIFIED
|
Unspecified partitioing interval. |
PARTITIONING_TIME_GRANULARITY_HOUR
|
Hourly partitioning. |
PARTITIONING_TIME_GRANULARITY_DAY
|
Daily partitioning. |
PARTITIONING_TIME_GRANULARITY_MONTH
|
Monthly partitioning. |
PARTITIONING_TIME_GRANULARITY_YEAR
|
Yearly partitioning. |
IngestionTimePartition
Ingestion time partitioning. see https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time
| JSON representation |
|---|
{
"partitioningTimeGranularity"
:
enum (
|
| Fields | |
|---|---|
partitioningTimeGranularity
|
Optional. Partition granularity |
BigQueryClustering
BigQuery clustering configuration.
| JSON representation |
|---|
{ "columns" : [ string ] } |
| Fields | |
|---|---|
columns[]
|
Required. Column names to set as clustering columns. |

