public class SqlToOperationConverter extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
static Optional<org.apache.flink.table.operations.Operation> |
convert(org.apache.flink.table.planner.calcite.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/DML
SqlNodes, different
SqlNode will have it's implementation in the #convert(type) method whose 'type' argument is
subclass of SqlNode. |
public static Optional<org.apache.flink.table.operations.Operation> convert(org.apache.flink.table.planner.calcite.FlinkPlannerImpl flinkPlanner, org.apache.flink.table.catalog.CatalogManager catalogManager, org.apache.calcite.sql.SqlNode sqlNode)
SqlNodes, different
SqlNode will have it's implementation in the #convert(type) method whose 'type' argument is
subclass of SqlNode.flinkPlanner - FlinkPlannerImpl to convertCreateTable sql node to rel nodecatalogManager - CatalogManager to resolve full path for operationssqlNode - SqlNode to execute onCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.