[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:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user