|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SqlToRelTestBase.Tester
Helper class which contains default implementations of methods used for running sql-to-rel conversion tests.
Method Summary | |
---|---|
void |
assertConvertsTo(String sql,
String plan)
Checks that a SQL statement converts to a given plan. |
RelNode |
convertSqlToRel(String sql)
Converts a SQL string to a RelNode tree. |
SqlValidatorCatalogReader |
createCatalogReader(RelDataTypeFactory typeFactory)
Factory method for a SqlValidatorCatalogReader . |
RelOptPlanner |
createPlanner()
|
SqlToRelTestBase.MockRelOptSchema |
createRelOptSchema(SqlValidatorCatalogReader catalogReader,
RelDataTypeFactory typeFactory)
|
SqlValidator |
createValidator(SqlValidatorCatalogReader catalogReader,
RelDataTypeFactory typeFactory)
Factory method to create a SqlValidator . |
SqlConformance |
getConformance()
Returns the SQL dialect to test. |
DiffRepository |
getDiffRepos()
|
SqlOperatorTable |
getOperatorTable()
Returns the SqlOperatorTable to use. |
SqlNode |
parseQuery(String sql)
|
Method Detail |
---|
RelNode convertSqlToRel(String sql)
RelNode
tree.
sql
- SQL statement
SqlNode parseQuery(String sql) throws Exception
Exception
SqlValidator createValidator(SqlValidatorCatalogReader catalogReader, RelDataTypeFactory typeFactory)
SqlValidator
.
SqlValidatorCatalogReader createCatalogReader(RelDataTypeFactory typeFactory)
SqlValidatorCatalogReader
.
RelOptPlanner createPlanner()
SqlOperatorTable getOperatorTable()
SqlOperatorTable
to use.
SqlToRelTestBase.MockRelOptSchema createRelOptSchema(SqlValidatorCatalogReader catalogReader, RelDataTypeFactory typeFactory)
SqlConformance getConformance()
void assertConvertsTo(String sql, String plan)
sql
- SQL queryplan
- Expected planDiffRepository getDiffRepos()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |