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.Constructor and Description |
---|
HiveAggDecimalPlusTypeStrategy() |
Modifier and Type | Method and Description |
---|---|
Optional<DataType> |
inferType(CallContext callContext)
Infers a type from the given function call.
|
public Optional<DataType> inferType(CallContext callContext)
TypeStrategy
inferType
in interface TypeStrategy
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.