[docs] add merge code example to delta docs#5845
Merged
anandbraman merged 2 commits intomainfrom Mar 17, 2026
Merged
Conversation
ryzhyk
approved these changes
Mar 17, 2026
Contributor
ryzhyk
left a comment
There was a problem hiding this comment.
Thanks! Please create an issue to add a test for this in either the main repo or the QA repo.
Update docs.feldera.com/docs/connectors/sinks/delta.md Co-authored-by: Leonid Ryzhyk <ryzhyk@gmail.com> Signed-off-by: Anand Raman <49171658+anandbraman@users.noreply.github.com> Update docs.feldera.com/docs/connectors/sinks/delta.md Co-authored-by: Leonid Ryzhyk <ryzhyk@gmail.com> Signed-off-by: Anand Raman <49171658+anandbraman@users.noreply.github.com> Update docs.feldera.com/docs/connectors/sinks/delta.md Co-authored-by: Leonid Ryzhyk <ryzhyk@gmail.com> Signed-off-by: Anand Raman <49171658+anandbraman@users.noreply.github.com>
31388dd to
7162b86
Compare
Signed-off-by: feldera-bot <feldera-bot@feldera.com>
mythical-fred
approved these changes
Mar 17, 2026
| FROM {source_table} | ||
| -- Only consider new updates since the last merge. | ||
| WHERE __feldera_ts >= ( | ||
| SELECT COALESCE(MAX(__feldera_ts), 0) |
There was a problem hiding this comment.
The subquery reads from {target_table} inside the USING clause, which is the same table being merged into. This self-reference is legal in Delta Lake but can behave differently across Spark versions — worth a note in the surrounding prose so readers know to validate against their environment.
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.
Describe Manual Test Plan
Checklist
Breaking Changes?
Mark if you think the answer is yes for any of these components:
Describe Incompatible Changes