github-actions[bot] commented on code in PR #69304:
URL: https://github.com/apache/doris/pull/69304#discussion_r4665464375
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/ConvertAggStateCast.java:
##########
@@ -75,10 +74,10 @@ public static Cast convert(Cast cast) {
}
newChildren.add(newChild);
Review Comment:
[P1] Retarget CombineCombinator producers to the sink's AGG_STATE codec
version
`ConvertAggStateCast` only rebuilds a `StateCombinator`. A `*_combine`
expression is also an AGG_STATE producer, but
`CombineCombinator.createReturnType()` and `withChildren()` still construct
`AggStateType` with the current FE version. For example, inserting
`avg_combine(nullable_value)` into a v19 AGG_STATE column while planning at v20
leaves a v20 producer under the v19 target cast; the generic cast does not
rewrite the state bytes, and final validation can reject it or send the wrong
codec to the sink. Extend the target-version rewrite to `CombineCombinator`
(preserving that version through child rebuilds) and cover this sink path.
--
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]