public class ZetaSQLQueryPlanner extends java.lang.Object implements QueryPlanner
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)
It parses and validate the input query, then convert into a
BeamRelNode tree. |
BeamRelNode |
convertToBeamRel(java.lang.String sqlStatement,
java.util.Map<java.lang.String,com.google.zetasql.Value> queryParams) |
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. |
BeamRelNode |
parseQuery(java.lang.String sql) |
BeamRelNode |
parseQuery(java.lang.String sql,
java.util.Map<java.lang.String,com.google.zetasql.Value> queryParams) |
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) 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
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 parseQuery(java.lang.String sql) throws org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.RelConversionException
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.RelConversionException
public BeamRelNode parseQuery(java.lang.String sql, java.util.Map<java.lang.String,com.google.zetasql.Value> queryParams) throws org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.RelConversionException
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.tools.RelConversionException