gatorsmile commented on a change in pull request #29070:
URL: https://github.com/apache/spark/pull/29070#discussion_r453675359



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkStrategies.scala
##########
@@ -286,7 +286,7 @@ abstract class SparkStrategies extends 
QueryPlanner[SparkPlan] {
 
         def createCartesianProduct() = {
           if (joinType.isInstanceOf[InnerLike]) {
-            Some(Seq(joins.CartesianProductExec(planLater(left), 
planLater(right), condition)))
+            Some(Seq(joins.CartesianProductExec(planLater(left), 
planLater(right), p.condition)))

Review comment:
       This needs a comment before this line. 
   // Instead of using the other conditions extracted from ExtractEquiJoinKeys, 
we should keep the original join condition, i.e., p.condition.




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to