Package org.apache.calcite.test
Class IntervalTest
java.lang.Object
org.apache.calcite.test.IntervalTest
Test cases for intervals.
Called, with varying implementations of IntervalTest.Fixture
,
from both parser and validator test.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Fluent interface for binding an expression to create a fixture that can be used to validate, check AST, or check type.static interface
Fluent interface to validate an expression. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
Runs tests for INTERVAL...void
void
testAll()
Runs all tests.
-
Constructor Details
-
IntervalTest
-
-
Method Details
-
testAll
public void testAll()Runs all tests. -
subTestIntervalYearPositive
public void subTestIntervalYearPositive()Runs tests for INTERVAL... YEAR that should pass both parser and validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalYearToMonthPositive
public void subTestIntervalYearToMonthPositive()Runs tests for INTERVAL... YEAR TO MONTH that should pass both parser and validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalMonthPositive
public void subTestIntervalMonthPositive()Runs tests for INTERVAL... MONTH that should pass both parser and validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalDayPositive
public void subTestIntervalDayPositive()Runs tests for INTERVAL... DAY that should pass both parser and validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalDayToHourPositive
public void subTestIntervalDayToHourPositive() -
subTestIntervalDayToMinutePositive
public void subTestIntervalDayToMinutePositive()Runs tests for INTERVAL... DAY TO MINUTE that should pass both parser and validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalDayToSecondPositive
public void subTestIntervalDayToSecondPositive()Runs tests for INTERVAL... DAY TO SECOND that should pass both parser and validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalHourPositive
public void subTestIntervalHourPositive()Runs tests for INTERVAL... HOUR that should pass both parser and validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalHourToMinutePositive
public void subTestIntervalHourToMinutePositive()Runs tests for INTERVAL... HOUR TO MINUTE that should pass both parser and validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalHourToSecondPositive
public void subTestIntervalHourToSecondPositive()Runs tests for INTERVAL... HOUR TO SECOND that should pass both parser and validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalMinutePositive
public void subTestIntervalMinutePositive()Runs tests for INTERVAL... MINUTE that should pass both parser and validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalMinuteToSecondPositive
public void subTestIntervalMinuteToSecondPositive()Runs tests for INTERVAL... MINUTE TO SECOND that should pass both parser and validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalSecondPositive
public void subTestIntervalSecondPositive()Runs tests for INTERVAL... SECOND that should pass both parser and validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalYearNegative
public void subTestIntervalYearNegative()Runs tests for INTERVAL... YEAR that should pass parser but fail validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXNegative() tests. -
subTestIntervalYearToMonthNegative
public void subTestIntervalYearToMonthNegative()Runs tests for INTERVAL... YEAR TO MONTH that should pass parser but fail validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXNegative() tests. -
subTestIntervalWeekPositive
public void subTestIntervalWeekPositive()Runs tests for INTERVAL... WEEK that should pass both parser and validator. A substantially identical set of tests exists in SqlValidatorTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalQuarterPositive
public void subTestIntervalQuarterPositive()Runs tests for INTERVAL... QUARTER that should pass both parser and validator. A substantially identical set of tests exists in SqlValidatorTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXPositive() tests. -
subTestIntervalPlural
public void subTestIntervalPlural() -
subTestIntervalMonthNegative
public void subTestIntervalMonthNegative()Runs tests for INTERVAL... MONTH that should pass parser but fail validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXNegative() tests. -
subTestIntervalDayNegative
public void subTestIntervalDayNegative()Runs tests for INTERVAL... DAY that should pass parser but fail validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXNegative() tests. -
subTestIntervalDayToHourNegative
public void subTestIntervalDayToHourNegative()Runs tests for INTERVAL... DAY TO HOUR that should pass parser but fail validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXNegative() tests. -
subTestIntervalDayToMinuteNegative
public void subTestIntervalDayToMinuteNegative()Runs tests for INTERVAL... DAY TO MINUTE that should pass parser but fail validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXNegative() tests. -
subTestIntervalDayToSecondNegative
public void subTestIntervalDayToSecondNegative()Runs tests for INTERVAL... DAY TO SECOND that should pass parser but fail validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXNegative() tests. -
subTestIntervalHourNegative
public void subTestIntervalHourNegative()Runs tests for INTERVAL... HOUR that should pass parser but fail validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXNegative() tests. -
subTestIntervalHourToMinuteNegative
public void subTestIntervalHourToMinuteNegative()Runs tests for INTERVAL... HOUR TO MINUTE that should pass parser but fail validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXNegative() tests. -
subTestIntervalHourToSecondNegative
public void subTestIntervalHourToSecondNegative()Runs tests for INTERVAL... HOUR TO SECOND that should pass parser but fail validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXNegative() tests. -
subTestIntervalMinuteNegative
public void subTestIntervalMinuteNegative()Runs tests for INTERVAL... MINUTE that should pass parser but fail validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXNegative() tests. -
subTestIntervalMinuteToSecondNegative
public void subTestIntervalMinuteToSecondNegative()Runs tests for INTERVAL... MINUTE TO SECOND that should pass parser but fail validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXNegative() tests. -
subTestIntervalSecondNegative
public void subTestIntervalSecondNegative()Runs tests for INTERVAL... SECOND that should pass parser but fail validator. A substantially identical set of tests exists in SqlParserTest, and any changes here should be synchronized there. Similarly, any changes to tests here should be echoed appropriately to each of the other 12 subTestIntervalXXXNegative() tests. -
subTestMisc
public void subTestMisc()
-