Skip to content

Commit

Permalink
Fix add_ephemeral_prefix to identifier instead of name
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed Aug 9, 2024
1 parent 3d09872 commit 83ce993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def _recursively_prepend_ctes(

_extend_prepended_ctes(prepended_ctes, new_prepended_ctes)

new_cte_name = self.add_ephemeral_prefix(cte_model.name)
new_cte_name = self.add_ephemeral_prefix(cte_model.identifier)

Check warning on line 378 in core/dbt/compilation.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/compilation.py#L378

Added line #L378 was not covered by tests
rendered_sql = cte_model._pre_injected_sql or cte_model.compiled_code
sql = f" {new_cte_name} as (\n{rendered_sql}\n)"

Expand Down

0 comments on commit 83ce993

Please sign in to comment.