Package org.apache.calcite.test
Interface IntervalTest.Fixture2
- Enclosing class:
IntervalTest
public static interface IntervalTest.Fixture2
Fluent interface to validate an expression.
-
Method Summary
Modifier and TypeMethodDescriptionassertParse
(String expectedAst) Checks that the expression parses successfully and produces the given SQL when unparsed.void
columnType
(String expectedType) Checks that the expression is valid in the parser and validator and has the given column type.void
Checks that the expression is valid in the parser but invalid (with the given error message) in the validator.
-
Method Details
-
fails
Checks that the expression is valid in the parser but invalid (with the given error message) in the validator. -
columnType
Checks that the expression is valid in the parser and validator and has the given column type. -
assertParse
Checks that the expression parses successfully and produces the given SQL when unparsed.
-