-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 #8031: Call materialization macro from adapter dispatch #8355
Closed
Changes from 13 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
3d2dd84
Fix #8031: Call materialization macro from adapter dispatch
aranke 8e801b5
Merge branch 'main' into fix_8031
aranke 70749e7
Merge branch 'main' into fix_8031
aranke 9b67180
Use adapter dispatch in run
aranke c652e8c
Fix macro search strategy
aranke 8e7726d
Merge branch 'main' into fix_8031
aranke 8a68245
Default to package name 'dbt' if not found
aranke 6a3e8ae
Simplify to add dbt package as fallback
aranke 33a1483
Change test to override Postgres materialization
aranke baca60f
Merge branch 'main' into fix_8031
aranke 756e257
Merge branch 'main' into fix_8031
aranke 126c54f
Add test for macro_stack
aranke feaec5c
Revert "Add test for macro_stack"
aranke fbd2fc9
Fix call stack test
aranke 41c6512
Merge branch 'main' into fix_8031
aranke aaafbe7
add stack to dispatch
aranke 97725ef
throw up wip
aranke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Fixes | ||
body: Call materialization macro from adapter dispatch | ||
time: 2023-08-10T18:32:16.226142+01:00 | ||
custom: | ||
Author: aranke | ||
Issue: "8031" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think we made a fix recently for scenarios where macros that started with "materialization_" were incorrectly being picked up as materializations. For example, this was being flagged as a materialization instead of a macro:
Have you verified this doesn't reintroduce that issue?
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.
We have tests for that case now, so this PR shouldn't reintroduce the issue (or if it does, it'll be obvious before merging).
#8181