Is this a new bug?
Which packages are affected?
Current Behavior
via @ameyakhedekar (community slack thread)
if you use a Catalog-Linked Database (CLD) attached to Unity Catalog, you might encounter this error
Compilation Error in model dbt found an approximate match. Please delete ...
the working hypothesis is that, for time immemorial, Snowflake's SHOW OBJECTS would return case-insensitive tables names which means dbt receives upper-cased identifiers (provided there was now account-level override).
However, tables in the CLD pointing to Unity Catalog return case-sensitive identifiers by default
We suspect this is what is causing the approximate match
Expected Behavior
dbt-snowflake should account for potential case-sensitivity in the results of SHOW OBJECTS as a result of external catalog identifiers
Steps To Reproduce
try to materialize a table to a CLD that points to Unity Catalog
Relevant log output
Environment
- OS:
- Python:
- dbt-adapters:
- <adapter>:
Additional Context
No response
Is this a new bug?
Which packages are affected?
Current Behavior
via @ameyakhedekar (community slack thread)
if you use a Catalog-Linked Database (CLD) attached to Unity Catalog, you might encounter this error
the working hypothesis is that, for time immemorial, Snowflake's
SHOW OBJECTSwould return case-insensitive tables names which means dbt receives upper-cased identifiers (provided there was now account-level override).However, tables in the CLD pointing to Unity Catalog return case-sensitive identifiers by default
We suspect this is what is causing the approximate match
Expected Behavior
dbt-snowflake should account for potential case-sensitivity in the results of
SHOW OBJECTSas a result of external catalog identifiersSteps To Reproduce
try to materialize a table to a CLD that points to Unity Catalog
Relevant log output
Environment
Additional Context
No response