mrhhsg opened a new pull request, #65267:
URL: https://github.com/apache/doris/pull/65267
### What problem does this PR solve?
Issue Number: None
Problem Summary: Some array scalar functions only validated the first array
argument before type coercion. A bare empty array on the left side could
therefore hide the nested array element type carried by another argument,
allowing unsupported nested-array inputs to pass analysis and fail later in BE
execution. This change checks the argument that carries the unsupported
nested-array type before coercion for array_union, arrays_overlap,
array_position, array_remove, and countequal, so these cases fail during
analysis with clear type errors.
### Release note
Reject unsupported nested-array inputs to affected array functions during
analysis.
### Check List (For Author)
- Test:
- Unit Test: ./run-fe-ut.sh --run CheckExpressionLegalityTest
- Regression test: doris-local-regression --network 10.26.20.3/24 all -d
query_p0/sql_functions/array_functions -s test_array_nested_type_check
- Behavior changed: Yes. Unsupported nested-array inputs to the affected
array functions are rejected during analysis instead of reaching BE execution.
- 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]