Skip to content

Commit

Permalink
case fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
McKnight-42 committed May 7, 2024
1 parent 8834f53 commit 3d78183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbt/include/snowflake/macros/catalog.sql
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
table_schema as "table_schema",
table_name as "table_name",
case
when is_dynamic IN ('YES', 'Y') and table_type = 'BASE TABLE' THEN 'DYNAMIC TABLE'
when is_dynamic in ('YES', 'Y') and table_type = 'BASE TABLE' THEN 'DYNAMIC TABLE'
else table_type
end as "table_type",
comment as "table_comment",
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/adapter/dynamic_table_tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def query_relation_type(project, relation: SnowflakeRelation) -> Optional[str]:
sql = f"""
select
case
when table_type = 'BASE TABLE' and is_dynamic IN ('YES', 'Y') then 'dynamic_table'
when table_type = 'BASE TABLE' and is_dynamic in ('YES', 'Y') then 'dynamic_table'
when table_type = 'BASE TABLE' then 'table'
when table_type = 'VIEW' then 'view'
when table_type = 'EXTERNAL TABLE' then 'external_table'
Expand Down

0 comments on commit 3d78183

Please sign in to comment.