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