spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-23968) allow reading JSON that is composed of pure maps
Date Thu, 12 Apr 2018 09:47:00 GMT
Andi created SPARK-23968:
----------------------------

             Summary: 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


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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message