public class HiveAggDecimalPlusTypeStrategy extends Object implements TypeStrategy
DecimalPlusTypeStrategy from overriding the special calculation for precision and scale
needed by the aggregate function. LogicalTypeMerging.findAdditionDecimalType(int, int, int, int) will adjust
the precision according to the two input arguments, but for hive we just keep the precision as
input type because of the input type precision is the same.public Optional<DataType> inferType(CallContext callContext)
TypeStrategyinferType 在接口中 TypeStrategyCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.