[Regression] BigQuery: Unit tests using sources with sharded tables no longer work after CTE naming change #11075
Labels
bug
Something isn't working
regression
unit tests
Issues related to built-in dbt unit testing functionality
Is this a regression in a recent version of dbt-core?
Current Behavior
Unit tests fail due to an invalid subquery name, as soon as the
identifier
contains an asterisk (*
).Expected/Previous Behavior
I expect the CTE name to use the
name
and not theidentifier
field (as before).Alternatively :
Steps To Reproduce
schema.yml
for referencing a sharded table:my_model.sql
:Relevant log output
Generated query:
Environment
Which database adapter are you using with dbt?
bigquery
Additional Context
I think the regression was introduced by this feature:
More exactly by this PR: https://github.com/dbt-labs/dbt-core/pull/10290/files#diff-256fed5ccb449b0e82952615a14120463e22688ddd6454f891463d7f7623551aR374
The text was updated successfully, but these errors were encountered: