Skip to content

Commit

Permalink
Merge pull request #148 from scarrucciu/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyyeo authored Sep 21, 2022
2 parents 16021ec + ae1f111 commit ce3ee3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion macros/plugins/bigquery/create_external_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

create or replace external table {{source(source_node.source_name, source_node.name)}}
{%- if columns -%}(
{%- set column_quoted = adapter.quote(column.name) if column.quote else column.name %}
{% for column in columns %}
{{column.name}} {{column.data_type}} {{- ',' if not loop.last -}}
{{column_quoted}} {{column.data_type}} {{- ',' if not loop.last -}}
{%- endfor -%}
)
{% endif %}
Expand Down

0 comments on commit ce3ee3e

Please sign in to comment.