[
https://issues.apache.org/jira/browse/IGNITE-18662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maksim Zhuravkov updated IGNITE-18662:
--------------------------------------
Description:
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 and cast_from_decimal.test
was:
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
> 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 and cast_from_decimal.test
--
This message was sent by Atlassian Jira
(v8.20.10#820010)