deniskuzZ commented on code in PR #5462: URL: https://github.com/apache/hive/pull/5462#discussion_r1889184757
########## ql/src/java/org/apache/hadoop/hive/ql/optimizer/SharedWorkOptimizer.java: ########## @@ -1007,6 +1007,16 @@ private boolean canShareBroadcastInputs( return false; } + // Map Joins when vectorized can have different formats for the hash tables built on the small table. + // Reusing hash tables between different join type can lead to ClassCastException or even wrong results. + if (mapJoinOp1.getConf().getConds() != null && mapJoinOp1.getConf().getConds().length > 0 Review Comment: minor: could be simplified with util method: ```` ArrayUtils.isNotEmpty(mapJoinOp1.getConf().getConds()) ```` -- 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