deniskuzZ commented on code in PR #5409: URL: https://github.com/apache/hive/pull/5409#discussion_r1813097908
########## ql/src/java/org/apache/hadoop/hive/ql/optimizer/ConvertJoinMapJoin.java: ########## @@ -1521,12 +1570,22 @@ private static int estimateNumBuckets(JoinOperator joinOp, boolean useOpTraits) int estimatedBuckets = -1; for (Operator<? extends OperatorDesc>parentOp : joinOp.getParentOperators()) { - if (parentOp.getOpTraits().getNumBuckets() > 0) { - numBuckets = (numBuckets < parentOp.getOpTraits().getNumBuckets()) ? - parentOp.getOpTraits().getNumBuckets() : numBuckets; + final OpTraits parentOpTraits = parentOp.getOpTraits(); + if (parentOpTraits.getNumBuckets() > 0) { + numBuckets = (numBuckets < parentOpTraits.getNumBuckets()) ? Review Comment: why use ternary operator here at all ```` if (numBuckets < parentOpTraits.getNumBuckets()) { numBuckets = parentOpTraits.getNumBuckets(); } ```` -- 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