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

Commit

Permalink
Fix SampleBasedStatisticsSuite test case (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixingheyi-tian committed Jun 1, 2021
1 parent d8b45cd commit 4836f6a
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 4836f6a

Please sign in to comment.