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

StreamingAggregate encounters AssertionError due to outgoing batch being full

    XMLWordPrintableJSON

Details

    Description

      Running the following query on TPCH SF 1 encounters AssertionError:

       alter session set `planner.enable_hashagg` = false;
       select l_partkey, l_suppkey from lineitem l
        where 1=1 
        and (l.l_partkey, l.l_suppkey) in (select o.o_orderkey, o.o_custkey 
          from orders o 
          group by o.o_orderkey, o.o_custkey)
       group by l.l_partkey, l.l_suppkey;
      
      15:36:38.196 [2ae38d0a-a60c-3f83-b2e7-aa0a48cf6ddf:frag:1:0] ERROR o.a.d.e.w.f.AbstractStatusReporter - Error ae08b35d-3de4-4e70-b238-25aa77c482f0: Failure while running fragment.
      java.lang.AssertionError: Outgoing RecordBatch is not flushed. It reached its max capacity in the last update
              at org.apache.drill.exec.test.generated.StreamingAggregatorGen8.outputToBatch(StreamingAggTemplate.java:298) ~[na:na]
              at org.apache.drill.exec.test.generated.StreamingAggregatorGen8.doWork(StreamingAggTemplate.java:142) ~[na:na]
              at org.apache.drill.exec.physical.impl.aggregate.StreamingAggBatch.innerNext(StreamingAggBatch.java:127) ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
              at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:142) ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
              at org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:118) ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
              at org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:67) ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
              at org.apache.drill.exec.physical.impl.broadcastsender.BroadcastSenderRootExec.innerNext(BroadcastSenderRootExec.java:118) ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
              at org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:57) ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
              at org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:121) ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
              at org.apache.drill.exec.work.WorkManager$RunnableWrapper.run(WorkManager.java:303) [drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
      

      Attachments

        Activity

          People

            amansinha100 Aman Sinha
            amansinha100 Aman Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: