Interface QueryPlanner
- All Known Implementing Classes:
CalciteQueryPlanner
,ZetaSQLQueryPlanner
public interface QueryPlanner
An interface that planners should implement to convert sql statement to
BeamRelNode
or
SqlNode
.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static class
-
Method Summary
Modifier and TypeMethodDescriptionconvertToBeamRel
(String sqlStatement, QueryPlanner.QueryParameters queryParameters) It parses and validate the input query, then convert into aBeamRelNode
tree.org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlNode
Parse input SQL query, and return aSqlNode
as grammar tree.
-
Method Details
-
convertToBeamRel
BeamRelNode convertToBeamRel(String sqlStatement, QueryPlanner.QueryParameters queryParameters) throws ParseException, SqlConversionException It parses and validate the input query, then convert into aBeamRelNode
tree.- Throws:
ParseException
SqlConversionException
-
parse
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlNode parse(String sqlStatement) throws ParseException Parse input SQL query, and return aSqlNode
as grammar tree.- Throws:
ParseException
-