belugabehr commented on a change in pull request #1933: URL: https://github.com/apache/hive/pull/1933#discussion_r568002349
########## File path: ql/src/java/org/apache/hadoop/hive/ql/optimizer/stats/annotation/StatsRulesProcFactory.java ########## @@ -1734,7 +1735,7 @@ private boolean checkMapSideAggregation(GroupByOperator gop, float hashAggMaxThreshold = conf.getFloatVar(HiveConf.ConfVars.HIVEMAPAGGRMEMORYTHRESHOLD); // get available map memory - long totalMemory = StatsUtils.getAvailableMemory(conf, true) * 1000L * 1000L; + long totalMemory = DagUtils.getContainerResource(conf).getMemorySize() * 1000L * 1000L; Review comment: Existing issue, but please address here: this should be in MiB (1024L) ---------------------------------------------------------------- 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