Skip to content
Browse files
feat: add constants for MONTH and YEAR time partitioning types (#283)
Co-authored-by: Steffany Brown <>
  • Loading branch information
tswast and steffnay committed Oct 6, 2020
1 parent 9da28e5 commit 9090e1c
Showing 1 changed file with 21 additions and 4 deletions.
@@ -1980,20 +1980,37 @@ class TimePartitioningType(object):
"""str: Generates one partition per hour."""

"""str: Generates one partition per month."""

"""str: Generates one partition per year."""

class TimePartitioning(object):
"""Configures time-based partitioning for a table.
type_ (Optional[]):
Specifies the type of time partitioning to perform. Defaults to
which is the only currently supported type.
Supported values are:
* :attr:``
* :attr:``
* :attr:``
* :attr:``
field (Optional[str]):
If set, the table is partitioned by this field. If not set, the
table is partitioned by pseudo column ``_PARTITIONTIME``. The field
must be a top-level ``TIMESTAMP`` or ``DATE`` field. Its mode must
be ``NULLABLE`` or ``REQUIRED``.
must be a top-level ``TIMESTAMP``, ``DATETIME``, or ``DATE``
field. Its mode must be ``NULLABLE`` or ``REQUIRED``.
See the `time-unit column-partitioned tables guide
in the BigQuery documentation.
Number of milliseconds for which to keep the storage for a

0 comments on commit 9090e1c

Please sign in to comment.