github-actions[bot] commented on code in PR #62520:
URL: https://github.com/apache/doris/pull/62520#discussion_r3097774121
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/types/AggStateType.java:
##########
@@ -49,7 +49,6 @@ public class AggStateType extends DataType {
.put("any", "any_value")
.put("char_length", "character_length")
.put("stddev_pop", "stddev")
- .put("percentile_cont", "percentile")
Review Comment:
Binding `percentile`/`percentile_cont` to `PercentileV2` while removing the
agg-state canonicalization here breaks the `*_state/*_merge/*_union` path for
existing `agg_state<percentile(...)>` and `agg_state<percentile_cont(...)>`
schemas. `StateCombinator` / `MergeCombinator` derive the runtime function name
from `nested.getName()` (`percentile_v2` now), but `LogicalPlanBuilder` still
parses those column types as `percentile` / `percentile_cont`,
`CheckCast.checkWithLooseAggState()` only accepts equal function names, and BE
merge/union checks `type_function_name + suffix` exactly in
`vectorized_agg_fn.cpp`. A concrete failure is `CREATE TABLE t (s
agg_state<percentile(int,double)> generic); INSERT INTO t SELECT
percentile_state(k, 0.5) ...` or `SELECT percentile_merge(s) FROM t`, which now
becomes `percentile_v2_*` on the query side and no longer matches the stored
agg-state name. `map_agg` / `window_funnel` keep alias canonicalization for
this reason, so percentile needs the same
treatment.
--
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]