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

Decimal v2 subtraction hits a DCHECK

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 2.11.0
    • Impala 2.11.0
    • Backend
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment