Class HiveAggDecimalPlusTypeStrategy

java.lang.Object
org.apache.flink.table.types.inference.strategies.HiveAggDecimalPlusTypeStrategy
All Implemented Interfaces:
TypeStrategy

@Internal public class HiveAggDecimalPlusTypeStrategy extends Object implements 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 Details

    • HiveAggDecimalPlusTypeStrategy

      public HiveAggDecimalPlusTypeStrategy()
  • Method Details