Repository navigation
docs: add multiple conditional clauses examples to merge docs - #4890
Merged
ion-elgreco merged 2 commits intoOct 20, 2026
Merged
ion-elgreco merged 2 commits into
ion-elgreco merged 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4890 +/- ##
==========================================
- Coverage 81.95% 81.94% -0.01%
==========================================
Files 200 200
Lines 75769 75769
Branches 75769 75769
==========================================
- Hits 62094 62092 -2
- Misses 10042 10045 +3
+ Partials 3633 3632 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ion-elgreco
approved these changes
Oct 20, 2026
The merge docs showed per-clause predicates only for delete and did not show how several clauses of the same kind combine. Add a section demonstrating two when_matched_update clauses with different predicates (first match wins) and a conditional when_not_matched_insert. Both examples were verified against deltalake 1.6.6. Closes delta-io#3345 Signed-off-by: Shahzeb Ali <[email protected]>
ion-elgreco
force-pushed
the
docs/merge-conditional-clauses
branch
from
October 20, 2026 11:53
3778596 to
5849c75
Compare
ion-elgreco
enabled auto-merge (squash)
October 20, 2026 11:53
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
The merge docs showed per-clause predicates only for delete, and did not show how several clauses of the same kind combine. This adds a "Multiple conditional clauses" section to
docs/usage/merging-tables.mddemonstrating:when_matched_updateclauses with different per-clause predicates (first match wins): flag orders with a >50% amount jump for manual review, apply the new amount directly otherwise.when_not_matched_insert: only insert source rows satisfying an extra predicate.Both examples were verified against deltalake 1.6.6 with the exact outputs shown in the docs.
Related Issue
Closes #3345