diff --git a/community/cloud-foundation/templates/bigquery/bigquery_table.py b/community/cloud-foundation/templates/bigquery/bigquery_table.py index ea527d336..c173a1e62 100644 --- a/community/cloud-foundation/templates/bigquery/bigquery_table.py +++ b/community/cloud-foundation/templates/bigquery/bigquery_table.py @@ -36,6 +36,7 @@ def generate_config(context): 'expirationTime', 'schema', 'timePartitioning', + 'clustering', 'view' ] diff --git a/community/cloud-foundation/templates/bigquery/bigquery_table.py.schema b/community/cloud-foundation/templates/bigquery/bigquery_table.py.schema index b3c1f4e93..c4f9d5627 100644 --- a/community/cloud-foundation/templates/bigquery/bigquery_table.py.schema +++ b/community/cloud-foundation/templates/bigquery/bigquery_table.py.schema @@ -74,6 +74,19 @@ properties: description: | The only supported type is DAY, which generates one partition per day. + clustering: + type: object + description: The clustering specification for this table. + properties: + fields: + type: array + description: | + One or more fields on which data should be clustered. + Only top-level, non-repeated, simple-type fields are supported. + The order of the fields will determine how clusters + will be generated, so it is important. + items: + type: string view: type: object description: The view definintion.