Github user liutang123 commented on a diff in the pull request:
https://github.com/apache/spark/pull/21772#discussion_r203365167
--- 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 --

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