public class CalciteQueryPlanner extends java.lang.Object implements QueryPlanner
Modifier and Type | Class and Description |
---|---|
static class |
CalciteQueryPlanner.NonCumulativeCostImpl |
QueryPlanner.Factory, QueryPlanner.QueryParameters
Modifier and Type | Field and Description |
---|---|
static QueryPlanner.Factory |
FACTORY |
Constructor and Description |
---|
CalciteQueryPlanner(JdbcConnection connection,
java.util.Collection<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.RuleSet> ruleSets)
Called by
BeamSqlEnv .instantiatePlanner() reflectively. |
Modifier and Type | Method and Description |
---|---|
BeamRelNode |
convertToBeamRel(java.lang.String sqlStatement,
QueryPlanner.QueryParameters queryParameters)
It parses and validate the input query, then convert into a
BeamRelNode tree. |
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.FrameworkConfig |
defaultConfig(JdbcConnection connection,
java.util.Collection<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.RuleSet> ruleSets) |
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.sql.SqlNode |
parse(java.lang.String sqlStatement)
Parse input SQL query, and return a
SqlNode as grammar tree. |
public static final QueryPlanner.Factory FACTORY
public CalciteQueryPlanner(JdbcConnection connection, java.util.Collection<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.RuleSet> ruleSets)
BeamSqlEnv
.instantiatePlanner() reflectively.public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.FrameworkConfig defaultConfig(JdbcConnection connection, java.util.Collection<org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.RuleSet> ruleSets)
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.sql.SqlNode parse(java.lang.String sqlStatement) throws ParseException
SqlNode
as grammar tree.parse
in interface QueryPlanner
ParseException
public BeamRelNode convertToBeamRel(java.lang.String sqlStatement, QueryPlanner.QueryParameters queryParameters) throws ParseException, SqlConversionException
BeamRelNode
tree. Note that
query parameters are not yet supported.convertToBeamRel
in interface QueryPlanner
ParseException
SqlConversionException