Philip Adetiloye created SPARK-20470:
----------------------------------------

             Summary: Invalid json converting RDD row with Array of struct to 
json
                 Key: SPARK-20470
                 URL: https://issues.apache.org/jira/browse/SPARK-20470
             Project: Spark
          Issue Type: Bug
          Components: PySpark
    Affects Versions: 1.6.3
            Reporter: Philip Adetiloye


Trying to convert an RDD in pyspark containing Array of struct doesn't generate 
the right json. It looks trivial but can't get a good json out.


    rdd1 = rdd.map(lambda row: Row(x = json.dumps(row.asDict())))



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to