Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.35.0
Description
There are some test cases in `SqlOperatorTest` directly use the `SqlOperatorFixtureImpl.DEFAULT` to get the `SqlOperatorFixture`, including `SqlOperatorTest.testCast` and many other test cases related with `CAST` operator. This causes that the result check is missing when execute `CalciteSqlOperatorTest`, which should has result check.
This violates the design principle introduced by CALCITE-4885, which we should alway use `SqlOperatorTest.fixture()` to get the `SqlOperatorFixture`. This principle allows us to override`fixture()` method in subclasses to run tests in a different environment.
So I think we should fix these related test cases to keep consistent with the principle.
Attachments
Issue Links
- is related to
-
CALCITE-5678 Calcite should reject date literals not satisfying Gregorian calendar, per SQL standard
- Closed
- relates to
-
CALCITE-5957 Valid DATE '1945-2-2' is not accepted due to regression
- Open
-
CALCITE-5557 Add SAFE_CAST (BigQuery compatibility)
- Closed
-
CALCITE-6053 Upgrade Calcite to Avatica 1.24.0
- Open
- links to