Github user sachouche commented on a diff in the pull request:
https://github.com/apache/drill/pull/1237#discussion_r184112400
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/unorderedreceiver/UnorderedReceiverBatch.java
---
@@ -153,8 +153,10 @@ private RawFragmentBatch getNextBatch() throws
IOException {
public IterOutcome next() {
batchLoader.resetRecordCount();
stats.startProcessing();
+
+ RawFragmentBatch batch = null;
--- End diff --
The release logic is a NOOP if the body is null; the while loop is to guard
against an empty batch.
---