deniskuzZ commented on code in PR #5409: URL: https://github.com/apache/hive/pull/5409#discussion_r1813082595
########## ql/src/java/org/apache/hadoop/hive/ql/optimizer/ConvertJoinMapJoin.java: ########## @@ -714,6 +737,23 @@ private boolean convertJoinBucketMapJoin(JoinOperator joinOp, OptimizeTezProcCon } } + if (bucketFunction != null) { + final Operator<?> bigTableOp = mapJoinOp.getParentOperators().get(bigTablePosition); + for (TableScanOperator tso : OperatorUtils.findOperatorsUpstream(bigTableOp, TableScanOperator.class)) { + tso.getConf().setGroupingPartitionColumns(bucketFunction.getSourceColumnNames()); + tso.getConf().setGroupingNumBuckets(bucketFunction.getNumBuckets()); + } + + for (Operator<?> op : mapJoinOp.getParentOperators()) { + if (!(op instanceof ReduceSinkOperator)) { Review Comment: you could use stream API, filter and then foreach -- 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