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
(cherry picked from commit 47848b8)
  • Loading branch information
aranke authored and github-actions[bot] committed Aug 9, 2024
1 parent ac54d54 commit 184e47c
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 @@ -372,7 +372,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 375 in core/dbt/compilation.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/compilation.py#L375

Added line #L375 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 184e47c

Please sign in to comment.