HappenLee opened a new pull request, #66601:
URL: https://github.com/apache/doris/pull/66601
### What problem does this PR solve?
Issue Number: close #65976
Related PR: None
Problem Summary: A two-phase `array_agg_foreach` query over nested arrays in
an ordinary OLAP table failed with `array_agg not support write`. The generic
complex-type `array_agg` state did not implement serialization,
deserialization, or merge, so it could not cross aggregation phases or grow the
ForEach state array. This change serializes complex states with the native
DataType format using the active BE execution version and merges state columns
by value. The query now completes without using Table Stream.
### Release note
Fix `array_agg` and `array_agg_foreach` failures for complex element types
in multi-phase aggregation.
### Check List (For Author)
- Test: Unit Test and Regression test
- Unit Test: `GLIBC_COMPATIBILITY=OFF ./run-be-ut.sh -j 48 --run
--filter='AggregateFunctionArrayAggTest.*'` (7 tests passed)
- Regression test: `./run-regression-test.sh --run -d function_p0 -s
test_agg_foreach` (1 suite passed)
- ASAN BE build passed
- FE build and Checkstyle passed
- Behavior changed: Yes. Complex `array_agg` states now support
serialization and merge.
- 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]