Github user ppadma commented on a diff in the pull request:
https://github.com/apache/drill/pull/1101#discussion_r166098364
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/aggregate/HashAggTemplate.java
---
@@ -140,6 +131,9 @@
private OperatorContext oContext;
private BufferAllocator allocator;
+ private Map<String, Integer> keySizes;
+ // The size estimates for varchar value columns. The keys are the index
of the varchar value columns.
+ private Map<Integer, Integer> varcharValueSizes;
--- End diff --
Don't you need to adjust size estimates for repeated types also ?
---