Class DrillOptiq
java.lang.Object
org.apache.drill.exec.planner.logical.DrillOptiq
Utilities for Drill's planner.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isLiteralNull
(org.apache.calcite.rex.RexLiteral literal) static LogicalExpression
toDrill
(DrillParseContext context, List<org.apache.calcite.rel.RelNode> inputs, org.apache.calcite.rex.RexNode expr) Converts a tree ofRexNode
operators into a scalar expression in Drill syntax using multiple inputs.static LogicalExpression
toDrill
(DrillParseContext context, org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode expr) Converts a tree ofRexNode
operators into a scalar expression in Drill syntax using one input.static LogicalExpression
toDrill
(DrillParseContext context, org.apache.calcite.rel.type.RelDataType type, org.apache.calcite.rex.RexBuilder builder, org.apache.calcite.rex.RexNode expr)
-
Field Details
-
UNSUPPORTED_REX_NODE_ERROR
- See Also:
-
-
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 ofRexNode
operators into a scalar expression in Drill syntax using one input.- Parameters:
context
- parse context which contains planner settingsinput
- data inputexpr
- 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 ofRexNode
operators into a scalar expression in Drill syntax using multiple inputs.- Parameters:
context
- parse context which contains planner settingsinputs
- multiple data inputsexpr
- 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)
-