Skip to content

Commit

Permalink
Fix add_ephemeral_prefix to identifier instead of name (#10550)
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke authored Aug 9, 2024
1 parent 3d09872 commit 47848b8
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)
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 47848b8

Please sign in to comment.