diff --git a/dbt/include/snowflake/macros/catalog.sql b/dbt/include/snowflake/macros/catalog.sql index 72951a9f0..8354d3c44 100644 --- a/dbt/include/snowflake/macros/catalog.sql +++ b/dbt/include/snowflake/macros/catalog.sql @@ -42,7 +42,7 @@ table_schema as "table_schema", table_name as "table_name", case - when is_dynamic = 'yes' and table_type = 'BASE TABLE' THEN 'DYNAMIC TABLE' + when is_dynamic = 'YES' and table_type = 'BASE TABLE' THEN 'DYNAMIC TABLE' else table_type end as "table_type", comment as "table_comment", diff --git a/tests/functional/adapter/dynamic_table_tests/utils.py b/tests/functional/adapter/dynamic_table_tests/utils.py index 0ff60e2f9..5763e1b6c 100644 --- a/tests/functional/adapter/dynamic_table_tests/utils.py +++ b/tests/functional/adapter/dynamic_table_tests/utils.py @@ -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 = 'yes' then 'dynamic_table' + when table_type = 'BASE TABLE' and is_dynamic = 'YES' then 'dynamic_table' when table_type = 'BASE TABLE' then 'table' when table_type = 'VIEW' then 'view' when table_type = 'EXTERNAL TABLE' then 'external_table'