Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Action PR feedback
  • Loading branch information
b-per authored and jtcohen6 committed Feb 1, 2023
commit 4932c70d9ccb09a18871a549f8a4b5b45c94697d
8 changes: 4 additions & 4 deletions dbt/include/snowflake/macros/utils/get_columns_spec_ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
(
{% for i in user_provided_columns -%}
{%- set col = user_provided_columns[i] -%}
{% set constraints = col['constraint'] -%}
{%- set checks = col['checks'] -%}
{%- if checks -%}
{{exceptions.warn("We noticed you have `checks` in your configs, these are NOT compatible with Snowflake and will be ignored")}}
{% set constraints = col['constraints'] -%}
{%- set check = col['check'] -%}
{%- if check -%}
{{exceptions.warn("We noticed you have `check` configs, these are NOT compatible with Snowflake and will be ignored")}}
{%- endif %}
{{ col['name'] }} {{ col['data_type'] }} {% for x in constraints %} {{ x or "" }} {% endfor %} {% if check -%} {%- endif %} {{ "," if not loop.last }}
{%- endfor %}
Expand Down