Package org.apache.calcite.test
Class SqlValidatorTestCase.Sql
- java.lang.Object
-
- org.apache.calcite.test.SqlValidatorTestCase.Sql
-
- Enclosing class:
- SqlValidatorTestCase
static class SqlValidatorTestCase.Sql extends java.lang.Object
Fluent testing API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlValidatorTestCase.Sql
bindType(java.lang.String bindType)
SqlValidatorTestCase.Sql
columnType(java.lang.String expectedType)
(package private) SqlValidatorTestCase.Sql
fails(java.lang.String expected)
(package private) SqlValidatorTestCase.Sql
failsIf(boolean b, java.lang.String expected)
SqlValidatorTestCase.Sql
monotonic(org.apache.calcite.sql.validate.SqlMonotonicity expectedMonotonicity)
(package private) SqlValidatorTestCase.Sql
ok()
SqlValidatorTestCase.Sql
sansCarets()
Removes the carets from the SQL string.SqlValidatorTestCase.Sql
sql(java.lang.String sql)
(package private) SqlValidatorTestCase.Sql
tester(SqlTester tester)
SqlValidatorTestCase.Sql
type(java.lang.String expectedType)
(package private) SqlValidatorTestCase.Sql
withExtendedCatalog()
(package private) SqlValidatorTestCase.Sql
withExtendedCatalog2003()
(package private) SqlValidatorTestCase.Sql
withExtendedCatalogLenient()
-
-
-
Field Detail
-
tester
private final SqlTester tester
-
sql
private final java.lang.String sql
-
-
Constructor Detail
-
Sql
Sql(SqlTester tester, java.lang.String sql, boolean query)
Creates a Sql.- Parameters:
tester
- Testersql
- SQL query or expressionquery
- True ifsql
is a query, false if it is an expression
-
-
Method Detail
-
tester
SqlValidatorTestCase.Sql tester(SqlTester tester)
-
sql
public SqlValidatorTestCase.Sql sql(java.lang.String sql)
-
withExtendedCatalog
SqlValidatorTestCase.Sql withExtendedCatalog()
-
withExtendedCatalog2003
SqlValidatorTestCase.Sql withExtendedCatalog2003()
-
withExtendedCatalogLenient
SqlValidatorTestCase.Sql withExtendedCatalogLenient()
-
ok
SqlValidatorTestCase.Sql ok()
-
fails
SqlValidatorTestCase.Sql fails(java.lang.String expected)
-
failsIf
SqlValidatorTestCase.Sql failsIf(boolean b, java.lang.String expected)
-
type
public SqlValidatorTestCase.Sql type(java.lang.String expectedType)
-
columnType
public SqlValidatorTestCase.Sql columnType(java.lang.String expectedType)
-
monotonic
public SqlValidatorTestCase.Sql monotonic(org.apache.calcite.sql.validate.SqlMonotonicity expectedMonotonicity)
-
bindType
public SqlValidatorTestCase.Sql bindType(java.lang.String bindType)
-
sansCarets
public SqlValidatorTestCase.Sql sansCarets()
Removes the carets from the SQL string. Useful if you want to run a test once at a conformance level where it fails, then run it again at a conformance level where it succeeds.
-
-