[ 
https://issues.apache.org/jira/browse/SPARK-23968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon resolved SPARK-23968.
----------------------------------
    Resolution: Incomplete

> allow reading JSON that is composed of pure maps
> ------------------------------------------------
>
>                 Key: SPARK-23968
>                 URL: https://issues.apache.org/jira/browse/SPARK-23968
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Andi
>            Priority: Major
>              Labels: bulk-closed
>
> org.apache.spark.sql.DataFrameReader#schema requires a StructType and hence 
> cannot be provided with a MapType.
> The usecase is to allow processing JSON encoded with id's as keys, rather 
> than well formed property names as the outer wrapper
> [ \{ "id-1": {"name": "bar"} , \{"id-2": {"name:"foo"} ]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to