public class ZetaSQLQueryPlanner extends java.lang.Object implements QueryPlanner
QueryPlanner.QueryParameters
Constructor and Description |
---|
ZetaSQLQueryPlanner(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.FrameworkConfig config) |
ZetaSQLQueryPlanner(JdbcConnection jdbcConnection,
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.RuleSet[] ruleSets) |
Modifier and Type | Method and Description |
---|---|
BeamRelNode |
convertToBeamRel(java.lang.String sqlStatement) |
BeamRelNode |
convertToBeamRel(java.lang.String sqlStatement,
java.util.List<com.google.zetasql.Value> queryParams) |
BeamRelNode |
convertToBeamRel(java.lang.String sqlStatement,
java.util.Map<java.lang.String,com.google.zetasql.Value> queryParams) |
BeamRelNode |
convertToBeamRel(java.lang.String sqlStatement,
QueryPlanner.QueryParameters queryParameters)
It parses and validate the input query, then convert into a
BeamRelNode tree. |
static org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.RuleSet[] |
getZetaSqlRuleSets() |
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 ZetaSQLQueryPlanner(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.FrameworkConfig config)
public ZetaSQLQueryPlanner(JdbcConnection jdbcConnection, org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.RuleSet[] ruleSets)
public static org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.RuleSet[] getZetaSqlRuleSets()
public BeamRelNode convertToBeamRel(java.lang.String sqlStatement)
public BeamRelNode convertToBeamRel(java.lang.String sqlStatement, java.util.Map<java.lang.String,com.google.zetasql.Value> queryParams) throws ParseException, SqlConversionException
ParseException
SqlConversionException
public BeamRelNode convertToBeamRel(java.lang.String sqlStatement, java.util.List<com.google.zetasql.Value> queryParams) throws ParseException, SqlConversionException
ParseException
SqlConversionException
public BeamRelNode convertToBeamRel(java.lang.String sqlStatement, QueryPlanner.QueryParameters queryParameters) throws ParseException, SqlConversionException
QueryPlanner
BeamRelNode
tree.convertToBeamRel
in interface QueryPlanner
ParseException
SqlConversionException
public org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.sql.SqlNode parse(java.lang.String sqlStatement) throws ParseException
QueryPlanner
SqlNode
as grammar tree.parse
in interface QueryPlanner
ParseException