@Internal public class ExpressionConverter extends java.lang.Object
Constructor and Description |
---|
ExpressionConverter(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCluster cluster,
QueryPlanner.QueryParameters params,
java.util.Map<java.lang.String,com.google.zetasql.resolvedast.ResolvedNodes.ResolvedCreateFunctionStmt> userDefinedFunctions) |
Modifier and Type | Method and Description |
---|---|
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode |
convertRelNodeToRexRangeRef(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.RelNode rel) |
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode |
convertResolvedLiteral(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedLiteral resolvedLiteral)
Convert a resolved literal to a RexNode.
|
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode |
convertRexNodeFromResolvedExpr(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedExpr expr)
Create a RexNode for a corresponding resolved expression.
|
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode |
convertRexNodeFromResolvedExpr(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedExpr expr,
java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> columnList,
java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> fieldList,
java.util.Map<java.lang.String,org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode> functionArguments)
Create a RexNode for a corresponding resolved expression node.
|
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexCall |
convertTableValuedFunction(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.RelNode input,
com.google.zetasql.TableValuedFunction tvf,
java.util.List<com.google.zetasql.resolvedast.ResolvedNodes.ResolvedFunctionArgument> argumentList,
java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> inputTableColumns)
Convert a TableValuedFunction in ZetaSQL to a RexCall in Calcite.
|
int |
indexOfProjectionColumnRef(long colId,
java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> columnList)
Return an index of the projection column reference.
|
java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode> |
retrieveRexNode(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedProjectScan node,
java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> fieldList)
Extract expressions from a project scan node.
|
java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode> |
retrieveRexNodeFromOrderByScan(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCluster cluster,
com.google.zetasql.resolvedast.ResolvedNodes.ResolvedOrderByScan node,
java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> fieldList)
Extract expressions from order by scan node.
|
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode |
trueLiteral() |
public ExpressionConverter(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCluster cluster, QueryPlanner.QueryParameters params, java.util.Map<java.lang.String,com.google.zetasql.resolvedast.ResolvedNodes.ResolvedCreateFunctionStmt> userDefinedFunctions)
public java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode> retrieveRexNode(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedProjectScan node, java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> fieldList)
public java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode> retrieveRexNodeFromOrderByScan(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCluster cluster, com.google.zetasql.resolvedast.ResolvedNodes.ResolvedOrderByScan node, java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> fieldList)
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode convertRexNodeFromResolvedExpr(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedExpr expr, java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> columnList, java.util.List<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataTypeField> fieldList, java.util.Map<java.lang.String,org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode> functionArguments)
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode convertRelNodeToRexRangeRef(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.RelNode rel)
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode convertRexNodeFromResolvedExpr(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedExpr expr)
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode trueLiteral()
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexNode convertResolvedLiteral(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedLiteral resolvedLiteral)
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rex.RexCall convertTableValuedFunction(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.RelNode input, com.google.zetasql.TableValuedFunction tvf, java.util.List<com.google.zetasql.resolvedast.ResolvedNodes.ResolvedFunctionArgument> argumentList, java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> inputTableColumns)
public int indexOfProjectionColumnRef(long colId, java.util.List<com.google.zetasql.resolvedast.ResolvedColumn> columnList)