google.cloud.bigquery.table.RangePartitioning¶
- class google.cloud.bigquery.table.RangePartitioning(range_=None, field=None, _properties=None)[source]¶
Range-based partitioning configuration for a table.
Note
Beta. The integer range partitioning feature is in a pre-release state and might change or have limited support.
- Parameters
range (Optional[google.cloud.bigquery.table.PartitionRange]) – Sets the
google.cloud.bigquery.table.RangePartitioning.range_
property.field (Optional[str]) – Sets the
google.cloud.bigquery.table.RangePartitioning.field
property._properties (Optional[dict]) – Private. Used to construct object from API resource.
- __init__(range_=None, field=None, _properties=None) → None[source]¶
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
([range_, field, _properties])Initialize self.
Attributes
The table is partitioned by this field.
Defines the ranges for range partitioning.
- property field¶
The table is partitioned by this field.
The field must be a top-level
NULLABLE
/REQUIRED
field. The only supported type isINTEGER
/INT64
.- Type
- property range_¶
Defines the ranges for range partitioning.
- Raises
ValueError – If the value is not a
PartitionRange
.- Type