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

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: #69122, #69178
   
   Problem Summary:
   
   Backport #69178 to branch-4.1. Reject complex types in `IN` and `NOT IN` 
predicates before type coercion. The previous STRUCT and ARRAY exceptions let 
unsupported comparisons reach execution, where they could return incorrect 
results or crash the BE.
   
   The backport includes the upstream analyzer unit tests and SQL regression 
cases for rejecting complex arguments.
   
   ### Release note
   
   The FE rejects `IN` and `NOT IN` predicates with complex-type arguments, 
including STRUCT and ARRAY, during SQL analysis.
   
   ### Testing
   
   `git diff --cached --check` passed. The backport has the same stable Git 
patch ID as #69178. FE Checkstyle passed with zero violations. FE unit tests 
and SQL regression suites were not run on the development machine.
   
   Pre-submission status: Partially verified: FE unit tests and SQL regression 
suites are pending CI.
   
   ### Check List (For Author)
   
   - Test
       - [x] Regression test
       - [x] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
   
   - Behavior changed:
       - [ ] No.
       - [x] Yes. Complex-type membership predicates now report an analysis 
error.
   
   - Does this need documentation?
       - [ ] No.
       - [x] Yes. The restriction is covered by 
https://github.com/apache/doris-website/pull/4328.
   
   ### 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