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

TestDecimalFuzz hits DCHECK math-functions-ir.cc "Check failed lhs > 0 && rhs > 0"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • Impala 3.1.0
    • None
    • Backend

    Description

      Several builds have been failing with an impalad hitting this DCHECK:

      auto MultiplicationOverflows = [](ActualType lhs, ActualType rhs) {
        DCHECK(lhs > 0 && rhs > 0); <----- HERE
        using ActualType = decltype(lhs);
        return BitUtil::CountLeadingZeros(lhs) + BitUtil::CountLeadingZeros(rhs) <=
        BitUtil::UnsignedWidth<ActualType>() + 1;
      };
      

      This happens during the TestDecimalFuzz test:

      I0817 10:50:44.950784 10364 Frontend.java:1024] Analyzing query: select width_bucket(cast(-10.0 as decimal(8,6)), cast(-10.0 as decimal(3,1)), cast(6490371073.16853453566312041152511 as decimal(36,25)), 26386065)
      F0817 10:50:44.952258 10364 math-functions-ir.cc:516] Check failed: lhs > 0 && rhs > 0

      It looks like a regression due to the fix for IMPALA-7412.

      Attachments

        Issue Links

          Activity

            People

              joemcdonnell Joe McDonnell
              joemcdonnell Joe McDonnell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: