mcdull-zhang commented on a change in pull request #35836:
URL: https://github.com/apache/spark/pull/35836#discussion_r826535952
##########
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:
Currently, the numKeys field is only used in the
UnsafeHashedRelation.keys() method, and UnsafeHashedRelation.keys() is only
used on the driver side, so the executor will not trigger this problem.
And the numKeys field does not affect the execution of the
UnsafeHashedRelation.get() method, so there was no problem before.
My personal understanding, you can also help analyze.
--
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]