peter-toth commented on code in PR #55927:
URL: https://github.com/apache/spark/pull/55927#discussion_r3258010248
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/joins/ShuffledJoin.scala:
##########
@@ -28,6 +28,21 @@ import
org.apache.spark.sql.catalyst.plans.physical.{ClusteredDistribution, Dist
trait ShuffledJoin extends JoinCodegenSupport {
def isSkewJoin: Boolean
+ private def containsNullSafeJoinMarker(keys: Seq[Expression]): Boolean = {
+ keys.exists(_.exists(_.isInstanceOf[IsNull]))
+ }
+
+ private lazy val canSpreadNullJoinKeys: Boolean = {
Review Comment:
~Is this robust enough? What if someone crafts a null handling join
condition by hand?~
~Actually, this looks good.~
Actually, why this needed at all and when can't we spread nulls?
`<=>` is translated to 2 key pairs `Coalesce(a.k, default), Coalesce(b.k,
default))` and `(IsNull(a.k), IsNull(b.k))`, so null never show up in shuffle
keys.
--
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]