Skip to content

Commit

Permalink
Merge pull request #16 from fishtown-analytics/feature/single_quote_p…
Browse files Browse the repository at this point in the history
…atterns

add single quoting around pattern for snowflake create external table ddl
  • Loading branch information
jtcohen6 authored Mar 30, 2020
2 parents 6553a74 + 9346469 commit 570f7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/external/create_external_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
{% if partitions -%} partition by ({{partitions|map(attribute='name')|join(', ')}}) {%- endif %}
location = {{external.location}} {# stage #}
{% if external.auto_refresh -%} auto_refresh = {{external.auto_refresh}} {%- endif %}
{% if external.pattern -%} pattern = {{external.pattern}} {%- endif %}
{% if external.pattern -%} pattern = '{{external.pattern}}' {%- endif %}
file_format = {{external.file_format}}
{% endmacro %}

Expand Down

0 comments on commit 570f7f1

Please sign in to comment.