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

JavaRDDLike.flatMap(PairFlatMapFunction) may fail with typechecking errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.1, 0.7.0
    • 0.6.2, 0.7.0
    • Java API
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: