Skip to content

Commit

Permalink
Test dbt-core#7537 (#602)
Browse files Browse the repository at this point in the history
(cherry picked from commit d308c9b)
  • Loading branch information
jtcohen6 authored and github-actions[bot] committed Jun 14, 2023
1 parent 24fad38 commit caa7da3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/functional/adapter/test_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
BaseIncrementalConstraintsRuntimeDdlEnforcement,
BaseIncrementalConstraintsRollback,
BaseModelConstraintsRuntimeEnforcement,
BaseConstraintQuotedColumn,
)


Expand Down Expand Up @@ -129,3 +130,23 @@ def expected_sql(self):
) as model_subq
);
"""


class TestSnowflakeConstraintQuotedColumn(BaseConstraintQuotedColumn):
@pytest.fixture(scope="class")
def expected_sql(self):
return """
create or replace transient table <model_identifier> (
id integer not null,
"from" text not null,
date_day text
) as (
select id, "from", date_day
from (
select
'blue' as "from",
1 as id,
'2019-01-01' as date_day
) as model_subq
);
"""

0 comments on commit caa7da3

Please sign in to comment.