viirya commented on a change in pull request #34065:
URL: https://github.com/apache/spark/pull/34065#discussion_r713670714



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkStrategies.scala
##########
@@ -262,7 +262,7 @@ abstract class SparkStrategies extends 
QueryPlanner[SparkPlan] {
               // This join could be very slow or OOM
               val buildSide = getSmallerSide(left, right)
               Seq(joins.BroadcastNestedLoopJoinExec(
-                planLater(left), planLater(right), buildSide, joinType, 
nonEquiCond))
+                planLater(left), planLater(right), buildSide, joinType, 
j.condition))

Review comment:
       Oh okay, so basically we cannot reach here if it is a equi-join with 
non-orderable keys. And by no means it runs into `createJoinWithoutHint` for 
equi-join for now.
   
   This is only for preventing possible bug.




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

Reply via email to