[Bug] does_table_exist macro failure when a source with a quoted identifier exists #84
Open
2 of 4 tasks
Labels
error:forced
status:stale
Issue was blocked or had no user response for more than 30 days
type:bug
Something is broken or incorrect
type:wontfix
This will not be worked on
Is there an existing issue for this?
Describe the issue
Does table exist is searching the entire dbt graph which may include quoted objects. The Snowflake adapter automatically capitalizes these table or view names. And it causes some sort or ambiguity error.
Relevant error log or model output
Expected behavior
Successful model run
dbt run -m stg_stripe__price_plan_tmp
Possible solution
Can we make the macro only search for objects inside the stripe database and schema? Why is it searching globally?
dbt Project configurations
vars:
stripe_database: internal_analytics
stripe_schema: stripe
Package versions
package: dbt-labs/codegen
version: 0.12.1
package: dbt-labs/audit_helper
version: 0.12.0
package: calogica/dbt_expectations
version: 0.10.4
package: fivetran/hubspot
version: [">=0.18.0", "<0.19.0"]
package: fivetran/stripe
version: [">=0.15.0", "<0.16.0"]
package: fivetran/facebook_ads
version: [">=0.7.0", "<0.8.0"]
package: fivetran/google_ads
version: [">=0.11.0", "<0.12.0"]
package: fivetran/linkedin
version: [">=0.9.0", "<0.10.0"]
What database are you using dbt with?
snowflake
How are you running this dbt package?
Fivetran Transformations, dbt Core™
dbt Version
Core:
installed: 1.8.6
Plugins:
snowflake: 1.8.3
Additional Context
No response
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: