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

Dataset of type option of map does not work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0, 2.2.0
    • Fix Version/s: 2.1.1, 2.2.0
    • Component/s: SQL
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: