Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-7947

Unable to aggregate or filter nullable decimals in large record sets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.19.0
    • 1.20.0
    • Storage - Parquet
    • None

    Description

      When attempting to aggregate or filter an optional decimal column, that have null values stored in Parquet, the exception: "NumberFormatException: Zero length BigInteger" is thrown.

      It only seems to happen on large record sets, and not small record sets.

      Test Query:

      select
       sum(cost), 
       avg(cost), 
       max(cost), 
       min(cost), 
       sum(sum(cost)) over () 
      from data.`ManyRows_OptionalFixedLength_Decimal.parquet`
      where cost > 0
      

      Test File:
      https://projectbiaps-my.sharepoint.com/:u:/g/personal/nisd_project_bi/EaoM317e421OsnvxHn_S9ecBBffDx1LCt3xn93nJ06f0LQ?e=pVI0Of

      Attachments

        1. sqlline.log
          17 kB
          Nick Stenroos-Dam

        Activity

          People

            volodymyr Vova Vysotskyi
            Nisd Nick Stenroos-Dam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: