[
https://issues.apache.org/jira/browse/IGNITE-23172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konstantin Orlov updated IGNITE-23172:
--------------------------------------
Ignite Flags: Docs Required,Release Notes Required
> Sql. Lack of bounds validation in CAST(1 as DECIMAL(MAX_PREC, MAX_SCALE))
> -------------------------------------------------------------------------
>
> Key: IGNITE-23172
> URL: https://issues.apache.org/jira/browse/IGNITE-23172
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Reporter: Konstantin Orlov
> Assignee: Konstantin Orlov
> Priority: Major
> Labels: ignite-3
> Time Spent: 10m
> Remaining Estimate: 0h
>
> A query like {{SELECT CAST(1 AS DECIMAL(32767, 32767))}} returns 1 although
> it must throw {{Numeric field overflow}}.
> Let's fix validation during CAST when precision and scale equals to their max
> values.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)