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

Encoder in Dataset example has incorrect type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1, 2.1.0
    • Examples
    • None

    Description

      https://github.com/apache/spark/blob/master/examples/src/main/scala/org/apache/spark/examples/sql/SparkSQLExample.scala#L206

      The type of this alternative encoder shall be Encoder[Map[String, Any]] instead of Encoder[Map[String, Int]]

      Attachments

        Activity

          People

            codingcat Nan Zhu
            codingcat Nan Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: