Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Fix SampleBasedStatisticsSuite UnitTest case #132

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class SampleBasedStatisticsSuite extends StatisticsTest {
test("test write2 function") {
val keys = (1 to 300).map(i => rowGen(i)).toArray

val product2Keys = keys.map(v => (v, Seq(1)))
val product2Keys = keys.map(v => (v, ArrayBuffer(1)))
.asInstanceOf[Array[Product2[Key, ArrayBuffer[Int]]]]

val testSampleWriter = new TestSampleWriter(schema)
Expand All @@ -191,7 +191,7 @@ class SampleBasedStatisticsSuite extends StatisticsTest {
test("read and write2") {
val keys = (1 to 300).map(i => rowGen(i)).toArray

val product2Keys = keys.map(v => (v, Seq(1)))
val product2Keys = keys.map(v => (v, ArrayBuffer(1)))
.asInstanceOf[Array[Product2[Key, ArrayBuffer[Int]]]]

val testSampleWriter = new TestSampleWriter(schema)
Expand Down