Details
Description
Calcite type cast rules differ from the standard. It should respect it. Consider:
// Works, but should not allow the cast at all. assertQuery("SELECT CAST(timestamp '1992-09-26 02:30:00' AS BIGINT)").returns(717474600000L).check(); // Fails with `TINYINT overflow`, but should not allow the cast at all. assertQuery("SELECT CAST(timestamp '1992-09-26 02:30:00' AS TINYINT)").returns(1).check();
Adoption of #IGNITE-20069
Attachments
Issue Links
- relates to
-
IGNITE-20069 Sql. Not allowed conversion in CAST is possible.
- Resolved
- links to