-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix add_ephemeral_prefix to identifier instead of name #10550
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10550 +/- ##
==========================================
- Coverage 88.90% 88.87% -0.04%
==========================================
Files 180 180
Lines 22721 22721
==========================================
- Hits 20200 20193 -7
- Misses 2521 2528 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ops, Community contribution with test here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nicely done!
(cherry picked from commit 47848b8)
Problem
Functional tests for "dbt unit testing" are failing on database errors like so:
This is related to this PR merged yesterday: dbt-labs/dbt-adapters#236
Solution
Pass in
cte_model.identifier
instead ofcte_model.name
toadd_ephemeral_prefix
.Checklist