Class HiveAggDecimalPlusTypeStrategy
java.lang.Object
org.apache.flink.table.types.inference.strategies.HiveAggDecimalPlusTypeStrategy
- All Implemented Interfaces:
TypeStrategy
Type strategy that returns the result type of a decimal addition, used internally for
implementing native SUM/AVG aggregations on a Decimal type. Here is used to prevent the normal
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninferType(CallContext callContext) Infers a type from the given function call.
-
Constructor Details
-
HiveAggDecimalPlusTypeStrategy
public HiveAggDecimalPlusTypeStrategy()
-
-
Method Details
-
inferType
Description copied from interface:TypeStrategyInfers a type from the given function call.- Specified by:
inferTypein interfaceTypeStrategy
-