Class DecimalReturnTypeInference.DecimalAddReturnTypeInference
java.lang.Object
org.apache.drill.exec.expr.fn.output.DecimalReturnTypeInference.DecimalAddReturnTypeInference
- All Implemented Interfaces:
ReturnTypeInference
- Enclosing class:
- DecimalReturnTypeInference
public static class DecimalReturnTypeInference.DecimalAddReturnTypeInference
extends Object
implements ReturnTypeInference
Return type calculation implementation for functions with return type set as
FunctionTemplate.ReturnType.DECIMAL_ADD_SCALE
.-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetType
(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) This return type is used by add and subtract functions for decimal data type.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DecimalAddReturnTypeInference
public DecimalAddReturnTypeInference()
-
-
Method Details
-
getType
public TypeProtos.MajorType getType(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) This return type is used by add and subtract functions for decimal data type. DecimalScalePrecisionAddFunction is used to compute the output types' scale and precision.- Specified by:
getType
in interfaceReturnTypeInference
- Parameters:
logicalExpressions
- logical expressionsattributes
- function attributes- Returns:
- return type
-