Description
As described in https://groups.google.com/d/topic/spark-users/KrVIf-DHg60/discussion, calls to JavaRDdLike.flatMap(PairFlatMapFunction) may be falsely rejected by the compiler with "cannot find symbol; method: flatMap" errors.
Here's a complete standalone example that reproduces the problem:
https://gist.github.com/4640356
I tried implementing a similar example in pure-Java (no Spark code) and was able to get the proper typechecking, so I suspect that this might be a Scala compiler bug.
Attachments
Issue Links
- is related to
-
SPARK-694 All references to [K, V] in JavaDStreamLike should be changed to [K2, V2]
- Resolved