Taras Bobrovytsky created IMPALA-6292:
-----------------------------------------

             Summary: Decimal v2 subtraction hits a DCHECK
                 Key: IMPALA-6292
                 URL: https://issues.apache.org/jira/browse/IMPALA-6292
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
    Affects Versions: Impala 2.11.0
            Reporter: Taras Bobrovytsky
            Assignee: Taras Bobrovytsky


The following query causes a DCHECK when executed with decimal_v2 enabled:
{code}
select cast(1 as decimal(13,12)) - 
cast(0.99999999999999999999999999999999999999 as decimal(38,38))
{code}

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

This was found using fuzz testing.



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

Reply via email to