[Bug](Agg-State) fix agg state function get wrong input argument list (#20546)

fix agg state function get wrong input argument list
This commit is contained in:
Pxl
2023-06-07 17:32:48 +08:00
committed by GitHub
parent d00b7ad04b
commit fbbf4c420e
3 changed files with 28 additions and 20 deletions

View File

@ -541,11 +541,6 @@ public class Function implements Writable {
fn.setArgTypes(Type.toThrift(Lists.newArrayList(argTypes), Lists.newArrayList(realArgTypes)));
}
if (realReturnType.isAggStateType()) {
realReturnType = Expr.createAggStateType(((AggStateType) realReturnType), Arrays.asList(realArgTypes),
Arrays.asList(realArgTypeNullables));
}
// For types with different precisions and scales, return type only indicates a
// type with default
// precision and scale so we need to transform it to the correct type.