Skip to content
Prev Previous commit
Next Next commit
[SPARK-25484][SQL][TEST] revert ExternalAppendOnlyUnsafeRowArray init…
…ialization
  • Loading branch information
peter-toth committed Jan 8, 2019
commit 0f676bce2e8104e81f7f7e9a12a3990f072a88ea
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ object ExternalAppendOnlyUnsafeRowArrayBenchmark extends BenchmarkBase {
benchmark.addCase("ExternalAppendOnlyUnsafeRowArray") { _: Int =>
var sum = 0L
for (_ <- 0L until iterations) {
val array = new ExternalAppendOnlyUnsafeRowArray(numSpillThreshold, numSpillThreshold)
val array = new ExternalAppendOnlyUnsafeRowArray(
ExternalAppendOnlyUnsafeRowArray.DefaultInitialSizeOfInMemoryBuffer,
numSpillThreshold)

rows.foreach(x => array.add(x))

Expand Down