Github user liutang123 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21772#discussion_r203241485
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/joins/HashedRelation.scala
 ---
    @@ -726,8 +726,9 @@ private[execution] final class LongToUnsafeRowMap(val 
mm: TaskMemoryManager, cap
     
         writeLong(array.length)
         writeLongArray(writeBuffer, array, array.length)
    -    val used = ((cursor - Platform.LONG_ARRAY_OFFSET) / 8).toInt
    -    writeLong(used)
    +    val cursorFlag = cursor - Platform.LONG_ARRAY_OFFSET
    +    writeLong(cursorFlag)
    +    val used = (cursorFlag / 8).toInt
    --- End diff --
    
    losing data when serializing LongHashedRelation in executor, can you see 
[this picture](http://oi67.tinypic.com/2z5pzs7.jpg)? In executor, the cursor is 
0.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to