Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-6340

There is no error when inserting an invalid value into a decimal column under decimal_v2

    XMLWordPrintableJSON

Details

    • ghx-label-6

    Description

      The following series of commands does not result in an error or a warning when decimal_v2 is enabled.

      set decimal_v2=1;
      create table t1 (c1 decimal(38,37));
      insert into t1 select 11.11;
      

      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:

      WARNINGS: UDF WARNING: Decimal expression overflowed, returning NULL
      

      Attachments

        Issue Links

          Activity

            People

              tarasbob Taras Bobrovytsky
              tarasbob Taras Bobrovytsky
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: