Mryange opened a new pull request, #70431:
URL: https://github.com/apache/doris/pull/70431

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: #69679
   
   Problem Summary:
   
   Backport #69679 to branch-4.2. Constant expressions such as COALESCE can 
return ordinary single-row columns, while scan predicate processing assumes 
ColumnConst and fails a checked cast. Normalize cached results with 
ConstantExprResult and migrate scan, scalar-function and ANN consumers, 
preserving NULL handling and constant broadcasting.
   
   Adapt regexp consumers and scan tests to the 4.2 interfaces without 
importing unrelated master features.
   
   ### Release note
   
   Fix query errors when scan predicates use constant expressions that return 
ordinary single-row columns.
   
   ### Check List (For Author)
   
   - Test
       - [x] Unit Test: ASAN BE build passed; 197 targeted tests across 13 
suites ran, 196 passed and the existing MathFunctionTest.random_test was 
skipped. Coverage includes constant ownership/broadcasting, NULL scan 
predicates, LIKE, scalar constant arguments and ANN.
       - clang-format 16 and whitespace checks passed.
       - clang-tidy scanned 28 changed translation units; the existing 
unmatched NOLINTEND in core/types.h prevents a clean pass. No additional 
diagnostics on changed lines.
       - Validation used the automation prebuilt third-party package with 
verified SHA256 and checked Paimon C API compatibility; 
Paimon/snappy/librdkafka versions differ from the branch defaults. Connector 
runtime and SQL regression tests were not run.
   
   - Behavior changed:
       - [x] Yes. Scan consumers accept ordinary single-row constant results.
   
   - Does this need documentation?
       - [x] No.
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label
   


-- 
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]

Reply via email to