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

Decimal v2 subtraction hits a DCHECK

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Impala 2.11.0
    • Fix Version/s: Impala 2.11.0
    • Component/s: Backend
    • Labels:
      None

      Description

      The following query causes a DCHECK when executed with decimal_v2 enabled:

      select cast(1 as decimal(13,12)) - cast(0.99999999999999999999999999999999999999 as decimal(38,38))
      

      DCHECK:

      decimal-value.inline.h:274] Check failed: abs(right) < DecimalUtil::MAX_UNSCALED_DECIMAL16
      

      This was found using fuzz testing.

        Attachments

          Activity

            People

            • Assignee:
              tarasbob Taras Bobrovytsky
              Reporter:
              tarasbob Taras Bobrovytsky
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: