Skip to content

Commit

Permalink
made optional
Browse files Browse the repository at this point in the history
  • Loading branch information
robby-rob-slalom committed Apr 11, 2024
1 parent 033ff52 commit 52b4a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/plugins/snowflake/create_external_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{% if infer_schema %}
{% set query_infer_schema %}
select * from table( infer_schema( location=>'{{external.location}}', file_format=>'{{external.file_format}}', ignore_case=>{{external.ignore_case}} ) )
select * from table( infer_schema( location=>'{{external.location}}', file_format=>'{{external.file_format}}'{%- if external.ignore_case -%}, ignore_case=>{{external.ignore_case}} {%- endif %} ) )
{% endset %}
{% if execute %}
{% set columns_infer = run_query(query_infer_schema) %}
Expand Down

0 comments on commit 52b4a7c

Please sign in to comment.