Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapter.get_relation mistakes exact match for approximate match #11

Closed
dataders opened this issue Nov 16, 2021 · 0 comments · Fixed by #12 or #22
Closed

adapter.get_relation mistakes exact match for approximate match #11

dataders opened this issue Nov 16, 2021 · 0 comments · Fixed by #12 or #22
Milestone

Comments

@dataders
Copy link
Contributor

dataders commented Nov 16, 2021

related to: dbt-labs/dbt-core#4187 and dbt-labs/dbt-core#3835

Using the standard two models that dbt comes prepackaged.

The first run ends successfully.
The second run ends with an error:

Completed with 1 error and 0 warnings:

Compilation Error in model my_first_dbt_model (models/example/my_first_dbt_model.sql)
  When searching for a relation, dbt found an approximate match. Instead of guessing 
  which relation to use, dbt will move on. Please delete "oz_my_first_dbt_model", or rename it to be less ambiguous.
  Searched for: oz_my_first_dbt_model
  Found: "oz_my_first_dbt_model"
  
  > in macro materialization_table_firebolt (macros/materializations/table.sql)
  > called by model my_first_dbt_model (models/example/my_first_dbt_model.sql)

Done. PASS=0 WARN=0 ERROR=1 SKIP=1 TOTAL=2

Shouldn't the model be recreated? (drop & create)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant