ReturnTypes.explicit(sumReturnType), oldCall.getAggregation().getOperandTypeInference(), oldCall.getAggregation().getOperandTypeChecker()), //SqlStdOperatorTable.SUM, oldCall.isDistinct(), oldCall.isApproximate(), ReturnTypes.explicit(countRetType), oldCall.getAggregation().getOperandTypeInference(), oldCall.getAggregation().getOperandTypeChecker()), //SqlStdOperatorTable.COUNT, oldCall.isDistinct(), oldCall.isApproximate(),
ReturnTypes.explicit(sumSquaredReturnType), InferTypes.explicit(Collections.singletonList(argSquared.getType())), oldCall.getAggregation().getOperandTypeChecker()), //SqlStdOperatorTable.SUM, argSquared.getType(), oldAggRel, oldCall, argSquaredOrdinal); ReturnTypes.explicit(sumReturnType), InferTypes.explicit(Collections.singletonList(argOrdinalType)), oldCall.getAggregation().getOperandTypeChecker()), //SqlStdOperatorTable.SUM, oldCall.isDistinct(), oldCall.isApproximate(), ReturnTypes.explicit(countRetType), oldCall.getAggregation().getOperandTypeInference(), oldCall.getAggregation().getOperandTypeChecker()), //SqlStdOperatorTable.COUNT, oldCall.isDistinct(), oldCall.isApproximate(),
ReturnTypes.explicit(sumReturnType), oldCall.getAggregation().getOperandTypeInference(), oldCall.getAggregation().getOperandTypeChecker()), //SqlStdOperatorTable.SUM, oldCall.isDistinct(), oldCall.isApproximate(),