Skip to content

Commit

Permalink
add single quoting around pattern for snowflake create external table…
Browse files Browse the repository at this point in the history
… ddl
  • Loading branch information
ChrisLawliss committed Jan 27, 2020
1 parent 6553a74 commit 9346469
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 9346469

Please sign in to comment.