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
fix build errors
  • Loading branch information
brkyvz committed Apr 28, 2015
commit f400ade684f781a109fcdfc8b843ba3fa7b244da
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ case class Sample(
// TODO: How to pick seed?
override def execute(): RDD[Row] = {
if (withReplacement) {
child.execute().map(_.copy()).sample(withReplacement, ub - lb, seed)
child.execute().map(_.copy()).sample(withReplacement, upperBound - lowerBound, seed)
} else {
child.execute().map(_.copy()).randomSampleWithRange(lb, ub, seed)
child.execute().map(_.copy()).randomSampleWithRange(lowerBound, upperBound, seed)
}
}
}
Expand Down