From 93464697d4d3f26d2fdc7047297bb1a382c1f55e Mon Sep 17 00:00:00 2001 From: Chris Lawliss Date: Mon, 27 Jan 2020 18:59:33 -0500 Subject: [PATCH] add single quoting around pattern for snowflake create external table ddl --- macros/external/create_external_table.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/external/create_external_table.sql b/macros/external/create_external_table.sql index 783fcf04..c14ba653 100644 --- a/macros/external/create_external_table.sql +++ b/macros/external/create_external_table.sql @@ -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 %}