ayushtkn commented on code in PR #4432:
URL: https://github.com/apache/hive/pull/4432#discussion_r1236836101


##########
ql/src/java/org/apache/hadoop/hive/ql/parse/GenTezUtils.java:
##########
@@ -130,8 +130,8 @@ public static ReduceWork createReduceWork(
       maxPartition = (maxPartition > maxReducers) ? maxReducers : maxPartition;
 
       // reduce only if the parameters are significant
-      if (minPartition < maxPartition &&
-          nReducers * minPartitionFactor >= 1.0) {
+      final int parallelismThreshold = 
context.conf.getIntVar(HiveConf.ConfVars.TEZ_AUTO_REDUCER_PARALLELISM_THRESHOLD);
+      if (minPartition < maxPartition && maxPartition >= parallelismThreshold) 
{

Review Comment:
   This looks like a behaviour change for the existing clients, if someone has 
configured ``minPartitionFactor`` according to his need, post your change, his 
results would change.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to