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

Failed to serialized ArrayType or MapType after accessing them in Python

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • PySpark
    • None

    Description

      files_schema_rdd.map(lambda x: x.files).take(1)
      

      Also it will lose the schema after iterate an ArrayType.

      files_schema_rdd.map(lambda x: [f.batch for f in x.files]).take(1)
      

      Attachments

        Activity

          People

            davies Davies Liu
            davies Davies Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: