Skip to content

Commit

Permalink
Merge pull request #318 from kyleburke-meq/main
Browse files Browse the repository at this point in the history
Refactor create_external_table.sql in snowflake plugin
  • Loading branch information
dataders authored Oct 25, 2024
2 parents 4d26c38 + 56d2c44 commit 837bf31
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 @@ -40,7 +40,7 @@
{%- if column.expression -%}
{{column.expression}}
{%- else -%}
{%- set col_id = 'value:c' ~ loop.index if is_csv else 'value:' ~ column_alias -%}
{%- set col_id = 'value:c' ~ loop.index if is_csv else 'value:' ~ column_quoted -%}
(case when is_null_value({{col_id}}) or lower({{col_id}}) = 'null' then null else {{col_id}} end)
{%- endif -%}
{%- endset %}
Expand Down

0 comments on commit 837bf31

Please sign in to comment.