Constructor and Description |
---|
SqlToRexConverter(org.apache.flink.table.planner.calcite.FlinkPlannerImpl planner,
org.apache.calcite.sql.SqlDialect sqlDialect,
org.apache.calcite.rel.type.RelDataType inputRowType,
org.apache.calcite.rel.type.RelDataType outputType) |
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.rex.RexNode |
convertToRexNode(String expr)
Converts a SQL expression to a
RexNode expression. |
org.apache.calcite.rex.RexNode[] |
convertToRexNodes(String[] exprs)
Converts an array of SQL expressions to an array of
RexNode expressions. |
String |
expand(String expr)
Converts the given SQL expression string to an expanded string with fully qualified function
calls and escaped identifiers.
|
public SqlToRexConverter(org.apache.flink.table.planner.calcite.FlinkPlannerImpl planner, org.apache.calcite.sql.SqlDialect sqlDialect, org.apache.calcite.rel.type.RelDataType inputRowType, @Nullable org.apache.calcite.rel.type.RelDataType outputType)
public String expand(String expr)
E.g. my_udf(f0) + 1
to `my_catalog`.`my_database`.`my_udf`(`f0`) + 1
public org.apache.calcite.rex.RexNode convertToRexNode(String expr)
RexNode
expression.expr
- SQL expression e.g. `my_catalog`.`my_database`.`my_udf`(`f0`) + 1
public org.apache.calcite.rex.RexNode[] convertToRexNodes(String[] exprs)
RexNode
expressions.exprs
- SQL expression e.g. `my_catalog`.`my_database`.`my_udf`(`f0`) + 1
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.