Skip to content

Commit

Permalink
Update BasicOperationsSuite.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
watermen committed Aug 28, 2014
1 parent 57e704c commit 714bda5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ class BasicOperationsSuite extends TestSuiteBase {

test("rdd cleanup - updateStateByKey") {
val updateFunc = (values: Seq[Int], state: Option[Int]) => {
Some(values.foldLeft(0)(_ + _) + state.getOrElse(0))
Some(values.sum + state.getOrElse(0))
}
val stateStream = runCleanupTest(
conf, _.map(_ -> 1).updateStateByKey(updateFunc).checkpoint(Seconds(3)))
Expand Down

0 comments on commit 714bda5

Please sign in to comment.