As of January 1, 2020 this library no longer supports Python 2 on the latest released version. Library versions released prior to that date will continue to be available. For more information please visit Python 2 support on Google Cloud.

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
__init__(range_=None, field=None, _properties=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([range_, field, _properties])

Initialize self.

Attributes

field

The table is partitioned by this field.

range_

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 is INTEGER / INT64.

Type

str

property range_

Defines the ranges for range partitioning.

Raises

ValueError – If the value is not a PartitionRange.

Type

google.cloud.bigquery.table.PartitionRange