You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 05:35:33 UTC
[jira] [Updated] (SPARK-4782) Add inferSchema support for
RDD[Map[String, Any]]
[ https://issues.apache.org/jira/browse/SPARK-4782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon updated SPARK-4782:
--------------------------------
Labels: bulk-closed (was: )
> Add inferSchema support for RDD[Map[String, Any]]
> -------------------------------------------------
>
> Key: SPARK-4782
> URL: https://issues.apache.org/jira/browse/SPARK-4782
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Reporter: Jianshi Huang
> Priority: Minor
> Labels: bulk-closed
>
> The best way to convert RDD[Map[String, Any]] to SchemaRDD currently seems to be converting each Map to JSON String first and use JsonRDD.inferSchema on it.
> It's very inefficient.
> Instead of JsonRDD, RDD[Map[String, Any]] is a better common denominator for Schemaless data as adding Map like interface to any serialization format is easy.
> So please add inferSchema support to RDD[Map[String, Any]]. *Then for any new serialization format we want to support, we just need to add a Map interface wrapper to it*
> Jianshi
--
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