Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Remove size checks
  • Loading branch information
sameeragarwal committed Jan 7, 2016
commit 3af6a2db857e9140f0fc5683c3ce8fc6b5f73d64
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ class DataFrameStatSuite extends QueryTest with SharedSQLContext {
s"split $id overlaps with split ${(id + 1) % splits.length}")
}

// Verify sample sizes
val s = splits.map(_.count())
assert(math.abs(s(0) - 100) < 50) // std = 9.13
assert(math.abs(s(1) - 200) < 50) // std = 11.55
assert(math.abs(s(2) - 300) < 50) // std = 12.25

// Verify that the results are deterministic across multiple runs
val firstRun = splits.toSeq.map(_.collect().toSeq)
val secondRun = data.randomSplit(Array[Double](1, 2, 3), seed = 1).toSeq.map(_.collect().toSeq)
Expand Down