tanelk commented on a change in pull request #28642:
URL: https://github.com/apache/spark/pull/28642#discussion_r738038077



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
##########
@@ -1215,6 +1215,14 @@ object InferFiltersFromConstraints extends 
Rule[LogicalPlan]
     }
   }
 
+  // Whether the result of this expression may be null. For example: 
CAST(strCol AS double)
+  // We will infer an IsNotNull expression for this expression to avoid skew 
join.
+  private def resultMayBeNull(exp: Expression): Boolean = exp match {

Review comment:
       perhaps also check the nullability of exp




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