You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Philip Adetiloye (JIRA)" <ji...@apache.org> on 2017/04/26 09:05:04 UTC
[jira] [Created] (SPARK-20470) Invalid json converting RDD row with
Array of struct to json
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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org