mcdull-zhang commented on a change in pull request #35836:
URL: https://github.com/apache/spark/pull/35836#discussion_r825935595



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/joins/HashedRelation.scala
##########
@@ -397,6 +398,7 @@ private[joins] class UnsafeHashedRelation(
       readInt: () => Int,
       readLong: () => Long,
       readBuffer: (Array[Byte], Int, Int) => Unit): Unit = {
+    numKeys = readInt()

Review comment:
       This field has not been serialized from the beginning. 
   The reason why this problem was not triggered before is because 
TorrentBroadcast._value is like this:
   `private lazy val _value: T = readBroadcastBlock()`
   
   It was modified after #22995 and became like this:
   `private var _value: SoftReference[T] = _`
   
   The driver side may deserialize UnsafeHashedRelation, and then cause this 
problem. 




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