Package org.apache.drill.exec.expr.fn
Class FunctionUtils
java.lang.Object
org.apache.drill.exec.expr.fn.FunctionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypeProtos.DataMode
getReturnTypeDataMode
(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) Calculates return type data mode based on give logical expressions.
-
Constructor Details
-
FunctionUtils
public FunctionUtils()
-
-
Method Details
-
getReturnTypeDataMode
public static TypeProtos.DataMode getReturnTypeDataMode(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) Calculates return type data mode based on give logical expressions. If null handling strategy is internal, returns return value data mode. If null handling strategy is null if null and at least one of the input types are nullable, return nullable data mode.- Parameters:
logicalExpressions
- logical expressionsattributes
- function attributes- Returns:
- data mode
-