Class RexToExpression
java.lang.Object
org.apache.drill.exec.planner.index.RexToExpression
This class is an enhanced version for DrillOptiq,
1, it can convert expressions in one more layer(project that have expression) above project-scan,
while DrillOptiq can only convert expressions directly reference scan's row type,
2, it can record the generated LogicalExpression of each rexNode in the rexNode tree for future reference
this result can serve future rewrite that need to locate particular LogicalExpressions
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LogicalExpression
toDrill
(DrillParseContext context, DrillProjectRelBase project, org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode expr)
-
Constructor Details
-
RexToExpression
public RexToExpression()
-
-
Method Details
-
toDrill
public static LogicalExpression toDrill(DrillParseContext context, DrillProjectRelBase project, org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode expr)
-