You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Taras Bobrovytsky (JIRA)" <ji...@apache.org> on 2017/12/18 23:43:00 UTC

[jira] [Created] (IMPALA-6340) There is no error when inserting an invalid value into a decimal column under decimal_v2

Taras Bobrovytsky created IMPALA-6340:
-----------------------------------------

             Summary: There is no error when inserting an invalid value into a decimal column under decimal_v2
                 Key: IMPALA-6340
                 URL: https://issues.apache.org/jira/browse/IMPALA-6340
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
    Affects Versions: Impala 2.11.0
            Reporter: Taras Bobrovytsky


The following series of commands does not result in an error or a warning when decimal_v2 is abled.
{code}
set decimal_v2=1;
create table t1 (c1 decimal(38,37));
insert into t1 select 11.11;
{code}
We end up inserting a NULL into the column without any warnings.

If these commands are executed with decimal_v2 disabled, we get the following warning:
{code}
WARNINGS: UDF WARNING: Decimal expression overflowed, returning NULL
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)