Class DrillOptiq

java.lang.Object
org.apache.drill.exec.planner.logical.DrillOptiq

public class DrillOptiq extends Object
Utilities for Drill's planner.
  • Field Details

  • Constructor Details

    • DrillOptiq

      public DrillOptiq()
  • Method Details

    • toDrill

      public static LogicalExpression toDrill(DrillParseContext context, org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode expr)
      Converts a tree of RexNode operators into a scalar expression in Drill syntax using one input.
      Parameters:
      context - parse context which contains planner settings
      input - data input
      expr - expression to be converted
      Returns:
      converted expression
    • toDrill

      public static LogicalExpression toDrill(DrillParseContext context, List<org.apache.calcite.rel.RelNode> inputs, org.apache.calcite.rex.RexNode expr)
      Converts a tree of RexNode operators into a scalar expression in Drill syntax using multiple inputs.
      Parameters:
      context - parse context which contains planner settings
      inputs - multiple data inputs
      expr - expression to be converted
      Returns:
      converted expression
    • toDrill

      public static LogicalExpression toDrill(DrillParseContext context, org.apache.calcite.rel.type.RelDataType type, org.apache.calcite.rex.RexBuilder builder, org.apache.calcite.rex.RexNode expr)
    • isLiteralNull

      public static boolean isLiteralNull(org.apache.calcite.rex.RexLiteral literal)