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