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

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: None
   
   Problem Summary: `array_sort` accepts a lambda comparator, but a lambda with 
a non-binary parameter list could pass analysis and reach later planning or 
execution paths. This PR validates that `array_sort` lambda arguments are 
exactly the two comparator parameters and adds FE and regression coverage for 
the invalid single-argument lambda case.
   
   ### Release note
   
   Reject `array_sort` lambda arguments that are not binary comparator lambdas.
   
   ### Check List (For Author)
   
   - Test: Regression test / Unit Test
       - Unit Test: `./run-fe-ut.sh --run 
org.apache.doris.nereids.rules.analysis.CheckExpressionLegalityTest`
       - Regression test: `./run-regression-test.sh --run -d 
nereids_function_p0 -s load`
       - Regression test: `./run-regression-test.sh --run -d 
nereids_function_p0/scalar_function -s nereids_scalar_fn_Array2`
   - Behavior changed: Yes. Invalid `array_sort` lambda arity now fails during 
analysis.
   - Does this need documentation: No


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