gfw.common.bigquery.TableConfig#
- class TableConfig(table_id, schema_file, description=None, partition_type='DAY', partition_field=None, clustering_fields=None, view_suffix='view')[source]#
Abstract base class for BigQuery table configuration.
Methods
Returns the query to perform when deleting records from this table.
Returns parameters for BigQuery table creation or write operations.
Returns the query to perform to create a view for this table.
Attributes
Optional tuple of fields for clustering.
Optional
TableDescriptioninstance for the table metadata.Field used for partitioning (optional).
Type of partitioning to apply (e.g.,
DAY,MONTH).Returns the schema of the table.
Returns the ID of the view for the table.
Suffix to use when constructing the view ID.
Fully qualified BigQuery table ID.
Path to the file defining the schema.
- description: TableDescription | None = None#
Optional
TableDescriptioninstance for the table metadata.
- to_bigquery_params(include_description=True)[source]#
Returns parameters for BigQuery table creation or write operations.
This dictionary is intended to be unpacked as keyword arguments into
BigQueryHelper.create_table.