Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/21311#discussion_r189907763
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/joins/HashedRelation.scala
---
@@ -626,6 +618,29 @@ private[execution] final class LongToUnsafeRowMap(val
mm: TaskMemoryManager, cap
}
}
+ private def grow(inputRowSize: Int): Unit = {
+ val neededNumWords = (cursor - Platform.LONG_ARRAY_OFFSET + 8 +
inputRowSize + 7) / 8
--- End diff --
don't forget the comment for the 8 bytes pointer
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]