zzzzwc opened a new pull request, #65959:
URL: https://github.com/apache/doris/pull/65959
### 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)
- 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
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]