Class DecimalReturnTypeInference.DecimalAvgAggReturnTypeInference
java.lang.Object
org.apache.drill.exec.expr.fn.output.DecimalReturnTypeInference.DecimalAvgAggReturnTypeInference
- All Implemented Interfaces:
ReturnTypeInference
- Enclosing class:
- DecimalReturnTypeInference
public static class DecimalReturnTypeInference.DecimalAvgAggReturnTypeInference
extends Object
implements ReturnTypeInference
Return type calculation implementation for functions with return type set as
FunctionTemplate.ReturnType.DECIMAL_AVG_AGGREGATE
.
Resulting scale is calculated as the max of 6 and the scale of input.
Resulting precision is max allowed numeric precision.-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetType
(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DecimalAvgAggReturnTypeInference
public DecimalAvgAggReturnTypeInference()
-
-
Method Details
-
getType
public TypeProtos.MajorType getType(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) - Specified by:
getType
in interfaceReturnTypeInference
-