Package org.apache.calcite.sql.parser
Class SqlParserTest.Sql
- java.lang.Object
-
- org.apache.calcite.sql.parser.SqlParserTest.Sql
-
- Enclosing class:
- SqlParserTest
protected class SqlParserTest.Sql extends java.lang.Object
Helper class for building fluent code such assql("values 1").ok();
.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
expression
private java.lang.String
sql
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlParserTest.Sql
expression()
Flags that this is an expression, not a whole query.SqlParserTest.Sql
fails(java.lang.String expectedMsgPattern)
SqlParserTest.Sql
node(org.hamcrest.Matcher<org.apache.calcite.sql.SqlNode> matcher)
SqlParserTest.Sql
ok(java.lang.String expected)
SqlParserTest.Sql
sansCarets()
Removes the carets from the SQL string.
-
-
-
Method Detail
-
ok
public SqlParserTest.Sql ok(java.lang.String expected)
-
fails
public SqlParserTest.Sql fails(java.lang.String expectedMsgPattern)
-
node
public SqlParserTest.Sql node(org.hamcrest.Matcher<org.apache.calcite.sql.SqlNode> matcher)
-
expression
public SqlParserTest.Sql expression()
Flags that this is an expression, not a whole query.
-
sansCarets
public SqlParserTest.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.
-
-