Class SqlNodeToOperationConversion
java.lang.Object
org.apache.flink.table.planner.operations.SqlNodeToOperationConversion
Mix-in tool class for
SqlNode that allows DDL commands to be converted to Operation.
For every kind of SqlNode, there needs to have a corresponding #convert(type) method,
the 'type' argument should be the subclass of the supported SqlNode.
Every #convert() should return a Operation which can be used in Planner.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<org.apache.flink.table.operations.Operation>convert(FlinkPlannerImpl flinkPlanner, org.apache.flink.table.catalog.CatalogManager catalogManager, org.apache.calcite.sql.SqlNode sqlNode) This is the main entrance for executing all kinds of DDL/DMLSqlNodes, different SqlNode will have it's implementation in the #convert(type) method whose 'type' argument is subclass ofSqlNode.
-
Method Details
-
convert
public static Optional<org.apache.flink.table.operations.Operation> convert(FlinkPlannerImpl flinkPlanner, org.apache.flink.table.catalog.CatalogManager catalogManager, org.apache.calcite.sql.SqlNode sqlNode) This is the main entrance for executing all kinds of DDL/DMLSqlNodes, different SqlNode will have it's implementation in the #convert(type) method whose 'type' argument is subclass ofSqlNode.- Parameters:
flinkPlanner- FlinkPlannerImpl to convertCreateTable sql node to rel nodecatalogManager- CatalogManager to resolve full path for operationssqlNode- SqlNode to execute on
-