Skip to content

Commit

Permalink
feat: modify BQ table template to use partitioning and clustering
Browse files Browse the repository at this point in the history
  • Loading branch information
adlersantos committed Jul 1, 2021
1 parent 2b1fe79 commit f1f8cb5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions templates/terraform/google_bigquery_table.tf.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ resource "google_bigquery_table" "{{ tf_resource_name }}" {
{% if description -%}
description = {{ description|tojson }}
{%- endif %}
{% if time_partitioning -%}
time_partitioning {
{%- for key, val in time_partitioning.items() %}
{{ key }} = {{ val|tojson }}
{% endfor -%}
}
{%- endif %}
{% if clustering -%}
clustering = {{ clustering|tojson }}
{%- endif %}
{% if schema -%}
schema = <<EOF
{{ schema }}
Expand Down

0 comments on commit f1f8cb5

Please sign in to comment.