ayushtkn commented on code in PR #4432:
URL: https://github.com/apache/hive/pull/4432#discussion_r1238630374
##########
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:
more inclined towards option:2, keeps the current formula, just makes the
comparison value configurable
--
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]