Skip to content

Commit

Permalink
Fix BigQuery partitions by aseparating them using commas (#114)
Browse files Browse the repository at this point in the history
Co-authored-by: Simo Tumelius <[email protected]>
  • Loading branch information
stumelius and datamie-simo authored Dec 8, 2021
1 parent fbd65d7 commit c58cc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/plugins/bigquery/create_external_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{% if options and options.get('hive_partition_uri_prefix', none) %}
with partition columns {%- if partitions %} (
{%- for partition in partitions %}
{{partition.name}} {{partition.data_type}}
{{partition.name}} {{partition.data_type}}{{',' if not loop.last}}
{%- endfor -%}
) {% endif -%}
{% endif %}
Expand Down

0 comments on commit c58cc5e

Please sign in to comment.