[fix](be) Fix table stream change type predicate pushdown#65959
Open
zzzzwc wants to merge 1 commit into
Open
Conversation
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Author
|
run buildall |
### What problem does this PR solve? Issue Number: close apache#65705 Related PR: None Problem Summary: A MIN_DELTA table stream can expose DELETE events through a direct SELECT but lose them in INSERT SELECT when the query filters __DORIS_STREAM_CHANGE_TYPE_COL__. The stream-change column and the raw binlog operation column share the same physical slot but use different encodings. OlapScanner pushed the output-domain predicate down to storage, where it was evaluated against raw binlog operation values before BlockReader synthesized the final stream-change type. This filtered required rows too early. Keep binlog operation predicates as scanner residuals for MIN_DELTA and DETAIL scans so they are evaluated after BlockReader produces the stream-change values, while preserving predicate pushdown for other columns. ### Release note Fix Table Stream INSERT SELECT failing to emit DELETE events when filtering by stream change type. ### Check List (For Author) - Test: No test run (existing regression coverage reproduces the issue) - Behavior changed: Yes, change-type predicates for MIN_DELTA and DETAIL scans are evaluated after BlockReader synthesizes the stream-change value - Does this need documentation: No
zzzzwc
force-pushed
the
zwc/fix-table-stream-delete
branch
from
July 23, 2026 10:54
7c1a945 to
2a0988d
Compare
Author
|
/review |
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.
What problem does this PR solve?
Issue Number: close #65705
Related PR: None
Problem Summary: A MIN_DELTA table stream can expose DELETE events through a direct SELECT but lose them in INSERT SELECT when the query filters DORIS_STREAM_CHANGE_TYPE_COL. The stream-change column and the raw binlog operation column share the same physical slot but use different encodings rule. OlapScanner pushed the output-domain predicate down to storage, where it was evaluated against raw binlog operation values before BlockReader synthesized the final stream-change type. This filtered required rows too early. Keep binlog operation predicates as scanner residuals for MIN_DELTA and DETAIL scans so they are evaluated after BlockReader produces the stream-change values, while preserving predicate pushdown for other columns.
Release note
Fix Table Stream INSERT SELECT failing to emit DELETE events when filtering by stream change type.
Check List (For Author)
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)