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

DataFrameRead.json(path) compatibility broken with Spark 1.6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None

    Description

      DataFrameRead.json(string) was removed as it was covered by {{DataFrameRead.json(string-varargs) }}. But this breaks compilation where the compiler needs a method with single arg. Example

      Option(path).map(spark.read.json)
      

      This works in 1.6 and does not compile in 2.0.

      Attachments

        Issue Links

          Activity

            People

              tdas Tathagata Das
              tdas Tathagata Das
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: