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

JSON schema inference failed when dealing with type conflicts in arrays

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • SQL
    • None

    Description

      val sqlContext = new org.apache.spark.sql.SQLContext(sparkContext)
      val diverging = sparkContext.parallelize(List("""{"branches": ["foo"]}""", """{"branches": [{"foo":42}]}"""))
      sqlContext.jsonRDD(diverging)  // throws a MatchError
      

      The case is from http://chapeau.freevariable.com/2014/10/fedmsg-and-spark.html

      Attachments

        Activity

          People

            yhuai Yin Huai
            yhuai Yin Huai
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: