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<Operation> |
convert(org.apache.flink.table.calcite.FlinkPlannerImpl flinkPlanner,
CatalogManager catalogManager,
org.apache.calcite.sql.SqlNode sqlNode)
This is the main entrance for executing all kinds of DDL/DML
SqlNode s, different
SqlNode will have it's implementation in the #convert(type) method whose 'type' argument is
subclass of SqlNode . |
public static Optional<Operation> convert(org.apache.flink.table.calcite.FlinkPlannerImpl flinkPlanner, CatalogManager catalogManager, org.apache.calcite.sql.SqlNode sqlNode)
SqlNode
s, different
SqlNode will have it's implementation in the #convert(type) method whose 'type' argument is
subclass of SqlNode
.flinkPlanner
- FlinkPlannerImpl to convert sql node to rel nodesqlNode
- SqlNode to execute onCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.