Class FunctionUtils

java.lang.Object
org.apache.drill.exec.expr.fn.FunctionUtils

public class FunctionUtils extends Object
  • 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 expressions
      attributes - function attributes
      Returns:
      data mode