You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maksim Zhuravkov (Jira)" <ji...@apache.org> on 2023/01/30 11:37:00 UTC

[jira] [Updated] (IGNITE-18662) Sql. Numeric to/from decimal cast with overflow does not produce an error

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

Maksim Zhuravkov updated IGNITE-18662:
--------------------------------------
    Summary: Sql. Numeric to/from decimal cast with overflow does not produce an error   (was: Sql. Numeric to decimal cast with overflow does not produce an error)

> Sql. Numeric to/from decimal cast with overflow does not produce an error 
> --------------------------------------------------------------------------
>
>                 Key: IGNITE-18662
>                 URL: https://issues.apache.org/jira/browse/IGNITE-18662
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>            Reporter: Maksim Zhuravkov
>            Priority: Minor
>              Labels: calcite2-required, calcite3-required, ignite-3
>             Fix For: 3.0.0-beta2
>
>
> Casts from numeric type to decimal with overflow must fail but they return a result:
> {code:java}
> SELECT 10000000::BIGINT::DECIMAL(3,1)
> {code}
> Returns 
> {code:java}
> ----
> 1000000
> {code}
> See skipif-ed examples in cast_to_decimal.test



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