rbalamohan commented on a change in pull request #1481: URL: https://github.com/apache/hive/pull/1481#discussion_r486285233
########## File path: ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorGroupByOperator.java ########## @@ -427,8 +428,12 @@ public void initialize(Configuration hconf) throws HiveException { computeMemoryLimits(); LOG.debug("using hash aggregation processing mode"); + reusableBufferSize = (int) (maxHtEntries * percentEntriesToFlush); + + reusableAggregationBufferRows = new ArrayDeque<>(reusableBufferSize); + if (keyWrappersBatch.getVectorHashKeyWrappers()[0] instanceof VectorHashKeyWrapperGeneral) { Review comment: This decision is made purely based on first item in the hashKeyWrapper. Would there be issue if there are different wrappers (e.g VectorHashKeyWrapperSingleLong) in other indices? Or would there be a miss if the first index isn't VectorHashKeyWrapperGeneral? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org