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 authored Jun 1, 2021
1 parent 4622640 commit abada6f
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 abada6f

Please sign in to comment.