Class SqlNodeToOperationConversion
- java.lang.Object
-
- org.apache.flink.table.planner.operations.SqlNodeToOperationConversion
-
public class SqlNodeToOperationConversion extends Object
Mix-in tool class forSqlNode
that allows DDL commands to be converted toOperation
.For every kind of
SqlNode
, there needs to have a corresponding #convert(type) method, the 'type' argument should be the subclass of the supportedSqlNode
.Every #convert() should return a
Operation
which can be used inPlanner
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<Operation>
convert(org.apache.flink.table.planner.calcite.FlinkPlannerImpl flinkPlanner, CatalogManager catalogManager, org.apache.calcite.sql.SqlNode sqlNode)
This is the main entrance for executing all kinds of DDL/DMLSqlNode
s, different SqlNode will have it's implementation in the #convert(type) method whose 'type' argument is subclass ofSqlNode
.
-
-
-
Method Detail
-
convert
public static Optional<Operation> convert(org.apache.flink.table.planner.calcite.FlinkPlannerImpl flinkPlanner, CatalogManager catalogManager, org.apache.calcite.sql.SqlNode sqlNode)
This is the main entrance for executing all kinds of DDL/DMLSqlNode
s, 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
-
-