[ 
https://issues.apache.org/jira/browse/IGNITE-23590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Steshin updated IGNITE-23590:
--------------------------------------
    Summary: Calcite. Introduce and fix types cast rules.  (was: Calcite. Fix 
types cast rules.)

> Calcite. Introduce and fix types cast rules.
> --------------------------------------------
>
>                 Key: IGNITE-23590
>                 URL: https://issues.apache.org/jira/browse/IGNITE-23590
>             Project: Ignite
>          Issue Type: Improvement
>    Affects Versions: 2.14
>            Reporter: Vladimir Steshin
>            Priority: Minor
>              Labels: calcite, ignite-2, ise
>
> Calcite type cast rules differ from the standard. It should respect it. 
> Consider:
> {code:java}
> // 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();
> {code}
> Adoption of #IGNITE-20069



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to