You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Evgeny Stanilovsky (Jira)" <ji...@apache.org> on 2023/11/13 06:18:00 UTC

[jira] [Created] (CALCITE-6111) Explicit cast from expression to numeric type doesn't check overflow

Evgeny Stanilovsky created CALCITE-6111:
-------------------------------------------

             Summary: Explicit cast from expression to numeric type doesn't check overflow
                 Key: CALCITE-6111
                 URL: https://issues.apache.org/jira/browse/CALCITE-6111
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.36.0
            Reporter: Evgeny Stanilovsky


After [1] was implemented it is still possible to obtain erroneous result, check:
{code:java}
SELECT cast(100+30 as tinyint);{code}
result:
{code:java}
-126{code}
[1] https://issues.apache.org/jira/browse/CALCITE-5990



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