Package org.apache.calcite.sql.test
Class SqlValidatorTester
java.lang.Object
org.apache.calcite.sql.test.AbstractSqlTester
org.apache.calcite.sql.test.SqlValidatorTester
- All Implemented Interfaces:
AutoCloseable
,SqlTester
Implementation of
SqlTester
that can parse and validate SQL,
and convert it to relational algebra.
This tester is therefore suitable for many general-purpose tests, including SQL parsing, validation, and SQL-to-Rel conversion.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.sql.test.SqlTester
SqlTester.ParameterChecker, SqlTester.ResultChecker, SqlTester.TypeChecker, SqlTester.ValidatedNodeConsumer, SqlTester.ValidatedNodeFunction<R>, SqlTester.VmName
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SqlValidatorTester
Default instance of this tester. -
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.calcite.sql.test.AbstractSqlTester
assertConvertsTo, assertExceptionIsThrown, buildQuery, buildQuery2, buildQueryAgg, check, checkAgg, checkAggFails, checkColumnType, checkFails, checkParseEx, checkQueryFails, checkWinAgg, close, convertSqlToRel2, createFieldTrimmer, forEachQuery, getColumnType, getResultType, parseExpression, parseQuery, setFor, trimRelNode, validateAndApply, validateAndThen
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.sql.test.SqlTester
check, checkFails, convertSqlToRel
-
Field Details
-
DEFAULT
Default instance of this tester.
-
-
Constructor Details
-
SqlValidatorTester
public SqlValidatorTester()
-