Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-668

JavaRDDLike.flatMap(PairFlatMapFunction) may fail with typechecking errors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.1, 0.7.0
    • Fix Version/s: 0.6.2, 0.7.0
    • Component/s: Java API
    • Labels:
      None

      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

            Activity

              People

              • Assignee:
                joshrosen Josh Rosen
                Reporter:
                joshrosen Josh Rosen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: