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

Dataset of type option of map does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0, 2.2.0
    • 2.1.1, 2.2.0
    • SQL
    • None

    Description

      A simple reproduce:

      case class ABC(m: Option[scala.collection.Map[Int, Int]])
      val ds = Seq(ABC(Some(Map(1 -> 1)))).toDS() 
      ds.collect()
      

      Attachments

        Activity

          People

            cloud_fan Wenchen Fan
            cloud_fan Wenchen Fan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: