spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yin Huai (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-5443) jsonRDD with schema should ignore sub-objects that are omitted in schema
Date Thu, 07 May 2015 06:02:00 GMT

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

Yin Huai resolved SPARK-5443.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 1.4.0

It has been resolved by https://github.com/apache/spark/commit/2d6612cc8b98f767d73c4d15e4065bf3d6c12ea7.

> jsonRDD with schema should ignore sub-objects that are omitted in schema
> ------------------------------------------------------------------------
>
>                 Key: SPARK-5443
>                 URL: https://issues.apache.org/jira/browse/SPARK-5443
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 1.2.0
>            Reporter: Derrick Burns
>            Assignee: Nathan Howell
>             Fix For: 1.4.0
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Reading the code for jsonRDD, it appears that all fields of a JSON object are read into
a ROW independent of the provided schema. I would expect it to be more efficient to only store
in the ROW those fields that are explicitly included in the schema. 
> For example, assume that I only wish to extract the "id" field of a tweet.  If I provided
a schema that simply had one field within a map named "id", then the row object would only
store that field within a map.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message