We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 708794e commit bc1cb82Copy full SHA for bc1cb82
core/src/main/scala/org/apache/spark/util/SizeEstimator.scala
@@ -217,10 +217,10 @@ object SizeEstimator extends Logging {
217
var arrSize: Long = alignSize(objectSize + INT_SIZE)
218
219
if (elementClass.isPrimitive) {
220
- arrSize += alignSize(length * primitiveSize(elementClass))
+ arrSize += alignSize(length.toLong * primitiveSize(elementClass))
221
state.size += arrSize
222
} else {
223
- arrSize += alignSize(length * pointerSize)
+ arrSize += alignSize(length.toLong * pointerSize)
224
225
226
if (length <= ARRAY_SIZE_FOR_SAMPLING) {
0 commit comments