Skip to content

Commit

Permalink
Add optional pattern. Required params
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed Jan 7, 2020
1 parent c01bb96 commit d3621fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions macros/external/create_external_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@
{% endfor %}
)
{% if partitions -%} partition by ({{partitions|map(attribute='name')|join(', ')}}) {%- endif %}
{% if external.location -%} location = {{external.location}} {%- endif %} {# stage #}
location = {{external.location}} {# stage #}
{% if external.auto_refresh -%} auto_refresh = {{external.auto_refresh}} {%- endif %}
{% if external.file_format -%} file_format = {{external.file_format}} {%- endif %}
{% if external.pattern -%} pattern = {{external.pattern}} {%- endif %}
file_format = {{external.file_format}}
{% endmacro %}

{% macro bigquery__create_external_table(source_node) %}
Expand Down

0 comments on commit d3621fb

Please sign in to comment.