Github user paul-rogers commented on a diff in the pull request: https://github.com/apache/drill/pull/1101#discussion_r165566070 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/aggregate/HashAggTemplate.java --- @@ -956,21 +925,8 @@ private void spillAPartition(int part) { this.htables[part].outputKeys(currOutBatchIndex, this.outContainer, outStartIdxHolder.value, outNumRecordsHolder.value, numPendingOutput); // set the value count for outgoing batch value vectors - /* int i = 0; */ for (VectorWrapper<?> v : outgoing) { v.getValueVector().getMutator().setValueCount(numOutputRecords); - /* --- End diff -- See the `RowSet` classes. Chunhui and others have successfully used these to print bathes for debugging. Roughly: ``` RowSet rs = DirectRowSet.fromContainer(container); rs.print(); ``` This can be modified to take a row range (to avoid, say, printing 64K rows.) There are versions to do the printing using an SV2 or SV4. In the code I've not yet posted is a utility to print the contents of an offset vector. Very handy when your offsets get messed up.
---