[Regression] Unit tests generate an sql with wrong CTE this
referrence on incremental model with alias
#10754
Closed
2 tasks done
Labels
bug
Something isn't working
incremental
Incremental modeling with dbt
regression
unit tests
Issues related to built-in dbt unit testing functionality
Is this a new bug in dbt-core?
Current Behavior
Unit tests fail due to wrong
this
cte referrence on incremental model with alias.Expected Behavior
I expect that the name of
this
referrence will be consistent with the cte, regardless of alias.Steps To Reproduce
dbt test --s example
, I am getting an error:because the generated SQL has different name of the CTE and the from referrence:
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
bigquery
Additional Context
No response
The text was updated successfully, but these errors were encountered: