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

Update the StreamingAggBatch current workspace record counter variable type to "long" from current type "int"

    XMLWordPrintableJSON

    Details

      Description

      This is causing invalid results in cases where the incoming batch has more than (2^31) - 1 records due to overflow issues.

      Example query: (make sure the nested query returns more than (2^31-1) records.

      SELECT count(*) FROM 
        (SELECT L_ORDERKEY, 
                        L_PARTKEY, 
                        L_SUPPKEY, 
                        count(*), 
                        count(l_quantity) 
          FROM dfs.`lineitem` 
         GROUP BY 
                        L_ORDERKEY, 
                        L_PARTKEY, 
                        L_SUPPKEY
        );
      

        Attachments

        1. DRILL-2857-1.patch
          1 kB
          Venki Korukanti

          Activity

            People

            • Assignee:
              vkorukanti Venki Korukanti
              Reporter:
              vkorukanti Venki Korukanti
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: