spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacek Laskowski <>
Subject Why's ds.foreachPartition(println) not possible?
Date Tue, 05 Jul 2016 13:22:56 GMT

It's with the master built today. Why can't I call
ds.foreachPartition(println)? Is using type annotation the only way to
go forward? I'd be so sad if that's the case.

scala> ds.foreachPartition(println)
<console>:28: error: overloaded method value foreachPartition with alternatives:
  (f: Iterator[Record] => Unit)Unit
 cannot be applied to (Unit)

scala> sc.version
res9: String = 2.0.0-SNAPSHOT

Jacek Laskowski
Mastering Apache Spark
Follow me at

To unsubscribe e-mail:

View raw message