|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
static interface Rex2CalcPlanTest.Tester
Test helper. The default implementation is Rex2CalcPlanTest.TesterImpl
, but
sub-tests can customize behavior by creating their own Tester.
Method Summary | |
---|---|
void |
check(String sql,
boolean nullSemantics,
boolean shortCircuit)
Compiles a SQL statement, and compares the generated calc program with the contents of a reference file with the same name as the current test. |
void |
checkAgg(String sql,
boolean shortCircuit)
Compiles a SQL statement containing aggregation, and compares the generated programs (init, add, drop) with the contents of a reference file. |
void |
checkWinAgg(String sql,
boolean shortCircuit)
Compiles a SQL statement containing windowed aggregation, and compares the generated programs (for init, add, drop and output) with the contents of a reference file. |
Methods inherited from interface org.eigenbase.test.SqlToRelTestBase.Tester |
---|
assertConvertsTo, convertSqlToRel, createCatalogReader, createPlanner, createRelOptSchema, createValidator, getConformance, getDiffRepos, getOperatorTable, parseQuery |
Method Detail |
---|
void check(String sql, boolean nullSemantics, boolean shortCircuit)
sql
- SQL statement. Must be of the form "SELECT ... FROM
... WHERE
".nullSemantics
- If true, adds logic to ensure that a
WHERE
clause which evalutes to NULL
will filter
out rows (as if it had evaluated to FALSE
).shortCircuit
- Generate short-circuit logic to optimize logical
operations such as AND
and OR conditions.
void checkWinAgg(String sql, boolean shortCircuit)
sql
- SQL statement. Must be of the form "SELECT agg OVER
window, agg OVER window ... FROM ... WINDOW decl
".shortCircuit
- Generate short-circuit logic to optimize logical
operations such as AND
and OR conditions.
void checkAgg(String sql, boolean shortCircuit)
sql
- SQL statement. Must be of the form "SELECT ... FROM
... WHERE ... GROUP BY ...
".shortCircuit
- Generate short-circuit logic to optimize logical
operations such as AND
and OR conditions.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |