Class SqlNodeConvertContext
java.lang.Object
org.apache.flink.table.planner.operations.SqlNodeConvertContext
- All Implemented Interfaces:
SqlNodeConverter.ConvertContext
An implementation of
SqlNodeConverter.ConvertContext.-
Constructor Summary
ConstructorsConstructorDescriptionSqlNodeConvertContext(FlinkPlannerImpl flinkPlanner, org.apache.flink.table.catalog.CatalogManager catalogManager) -
Method Summary
Modifier and TypeMethodDescriptionexpandSqlIdentifiers(String originalSql) Expands identifiers in a given SQL string.org.apache.flink.table.catalog.CatalogManagerReturns theCatalogManagerin the convert context.FlinkPlannerImplReturns theFlinkPlannerImplin the convert context.org.apache.calcite.sql.validate.SqlValidatorReturns theSqlValidatorin the convert context.org.apache.flink.table.api.TableConfigReturns theTableConfigdefined inTableEnvironment.List<org.apache.calcite.rex.RexNode>reduceRexNodes(List<org.apache.calcite.rex.RexNode> rexNodes) Reduce the givenRexNodes.toQuotedSqlString(org.apache.calcite.sql.SqlNode sqlNode) Convert the given into a quoted SQL string.org.apache.calcite.rel.RelRoottoRelRoot(org.apache.calcite.sql.SqlNode sqlNode) Converts the given validatedSqlNodeinto aRelRoot.org.apache.calcite.rex.RexNodetoRexNode(org.apache.calcite.sql.SqlNode sqlNode, org.apache.calcite.rel.type.RelDataType inputRowType, org.apache.flink.table.types.DataType outputType) Converts the given validatedSqlNodeinto aRexNode.
-
Constructor Details
-
SqlNodeConvertContext
public SqlNodeConvertContext(FlinkPlannerImpl flinkPlanner, org.apache.flink.table.catalog.CatalogManager catalogManager)
-
-
Method Details
-
getTableConfig
public org.apache.flink.table.api.TableConfig getTableConfig()Description copied from interface:SqlNodeConverter.ConvertContextReturns theTableConfigdefined inTableEnvironment.- Specified by:
getTableConfigin interfaceSqlNodeConverter.ConvertContext
-
getSqlValidator
public org.apache.calcite.sql.validate.SqlValidator getSqlValidator()Description copied from interface:SqlNodeConverter.ConvertContextReturns theSqlValidatorin the convert context.- Specified by:
getSqlValidatorin interfaceSqlNodeConverter.ConvertContext
-
getCatalogManager
public org.apache.flink.table.catalog.CatalogManager getCatalogManager()Description copied from interface:SqlNodeConverter.ConvertContextReturns theCatalogManagerin the convert context.- Specified by:
getCatalogManagerin interfaceSqlNodeConverter.ConvertContext
-
getFlinkPlanner
public FlinkPlannerImpl getFlinkPlanner()Description copied from interface:SqlNodeConverter.ConvertContextReturns theFlinkPlannerImplin the convert context.- Specified by:
getFlinkPlannerin interfaceSqlNodeConverter.ConvertContext
-
toRelRoot
public org.apache.calcite.rel.RelRoot toRelRoot(org.apache.calcite.sql.SqlNode sqlNode) Description copied from interface:SqlNodeConverter.ConvertContextConverts the given validatedSqlNodeinto aRelRoot.- Specified by:
toRelRootin interfaceSqlNodeConverter.ConvertContext
-
toRexNode
public org.apache.calcite.rex.RexNode toRexNode(org.apache.calcite.sql.SqlNode sqlNode, org.apache.calcite.rel.type.RelDataType inputRowType, @Nullable org.apache.flink.table.types.DataType outputType) Description copied from interface:SqlNodeConverter.ConvertContextConverts the given validatedSqlNodeinto aRexNode.- Specified by:
toRexNodein interfaceSqlNodeConverter.ConvertContext
-
reduceRexNodes
public List<org.apache.calcite.rex.RexNode> reduceRexNodes(List<org.apache.calcite.rex.RexNode> rexNodes) Description copied from interface:SqlNodeConverter.ConvertContextReduce the givenRexNodes.- Specified by:
reduceRexNodesin interfaceSqlNodeConverter.ConvertContext
-
toQuotedSqlString
Description copied from interface:SqlNodeConverter.ConvertContextConvert the given into a quoted SQL string.- Specified by:
toQuotedSqlStringin interfaceSqlNodeConverter.ConvertContext
-
expandSqlIdentifiers
Description copied from interface:SqlNodeConverter.ConvertContextExpands identifiers in a given SQL string.- Specified by:
expandSqlIdentifiersin interfaceSqlNodeConverter.ConvertContext- See Also:
-