-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
🐛 Normalization correctly propagates deletions to the final tables #12846
Merged
Merged
Changes from 2 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
b3715d8
first pass at deletions
edgao ce8970b
wip do deletions
edgao d270b92
update tests to reflect deleted rows
edgao ab5590a
revert final table generation
edgao 0be2776
wip incremental delete
edgao eb2f0ee
refactor
edgao 448edf6
remove todo
edgao 76dc17b
fix macros
edgao 4661e9e
use subquery for delete
edgao ea597c8
wip new_data model
edgao 854a98b
wip
edgao 36aa68b
wip move delete hook to scd
edgao 26f5668
drop new_data model; clean up code
edgao 2976e5c
wip better delete logic (need to verify performance)
edgao 883f4d6
better delete logic+comments
edgao bdfd5ab
add record to test for edge case
edgao 2608145
Merge branch 'master' into edgao/cdc_deletions
edgao ee3fe8f
slight tweaks
edgao 578dd2f
better codegen
edgao 5a08295
redshift does not support ctid in delete
edgao 8239f11
clickhouse deletes
edgao 8cba970
regenerate most test outputs (missing mssql + clickhouse)
edgao eb08d9f
mysql on m1
edgao eb29d6f
better clickhouse delete
edgao a176e0f
fix for clickhouse (no more CTEs in where clause)
edgao 328539c
regenerate test outputs
edgao 965777a
make mssql test run on m1 mac
edgao d828dfb
Revert "make mssql test run on m1 mac"
edgao 600b084
fix drop view for mssql
edgao 1a295e8
fix for linter
edgao d6f7ca6
much simpler query
edgao b542b4c
cleanup
edgao d205505
cleanup
edgao 09814a3
remove new_data model
edgao e36b305
remove do_deletions flag
edgao 05c560c
regenerate outputs
edgao 20438e1
add test case case for cross-sync deletion
edgao dfee8e0
faster query
edgao 90b2f86
regenerate outputs
edgao 0556673
better sql
edgao c46495c
regenerate output
edgao a47cf05
simplify query
edgao 087d556
regenerate output
edgao 176b66f
Merge branch 'master' into edgao/cdc_deletions
edgao 9526c19
bump versions + changelog
edgao cf841f7
Merge branch 'master' into edgao/cdc_deletions
edgao f428900
Merge branch 'master' into edgao/cdc_deletions
edgao 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
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.
is it mandatory to use
having
clause? I'm not sure about performance, but it might be less efficient than other approaches usingwhere
if possible instead?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.
running some manual performance tests; at first glance neither version has been significantly faster, but the non-having version does at least feel more readable 🤷