ngsg commented on code in PR #5424: URL: https://github.com/apache/hive/pull/5424#discussion_r1853769743
########## ql/src/java/org/apache/hadoop/hive/ql/parse/TezCompiler.java: ########## @@ -229,6 +230,12 @@ protected void optimizeOperatorPlan(ParseContext pCtx) throws SemanticException runStatsDependentOptimizations(procCtx); perfLogger.perfLogEnd(this.getClass().getName(), PerfLogger.TEZ_COMPILER, "Run the optimizations that use stats for optimization"); + perfLogger.perfLogBegin(this.getClass().getName(), PerfLogger.TEZ_COMPILER); + if (procCtx.conf.getLongVar(ConfVars.HIVE_OPTIMIZE_GROUPING_SET_THRESHOLD) > 0) { + new GroupingSetOptimizer().transform(pCtx); Review Comment: Moved the invocation into `runStatsDependentOptimizations`. -- 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. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org 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