[Vectorized][Bug] fix percentile_approx function to return always nullable (#8572)

This commit is contained in:
zhangstar333
2022-03-29 14:47:39 +08:00
committed by GitHub
parent 23b348456b
commit 66a3c574df
5 changed files with 106 additions and 26 deletions

View File

@ -52,7 +52,7 @@ public class AggregateFunction extends Function {
ImmutableSet.of("row_number", "rank", "dense_rank", "hll_union_agg", "hll_union", "bitmap_union", "bitmap_intersect", FunctionSet.COUNT, "ndv", FunctionSet.BITMAP_UNION_INT, FunctionSet.BITMAP_UNION_COUNT, "ndv_no_finalize");
public static ImmutableSet<String> ALWAYS_NULLABLE_AGGREGATE_FUNCTION_NAME_SET =
ImmutableSet.of("stddev_samp", "variance_samp", "var_samp");
ImmutableSet.of("stddev_samp", "variance_samp", "var_samp", "percentile_approx");
// Set if different from retType_, null otherwise.
private Type intermediateType;