You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Nicholas Chammas (JIRA)" <ji...@apache.org> on 2014/08/05 05:40:12 UTC

[jira] [Commented] (SPARK-2010) Support for nested data in PySpark SQL

    [ https://issues.apache.org/jira/browse/SPARK-2010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14085743#comment-14085743 ] 

Nicholas Chammas commented on SPARK-2010:
-----------------------------------------

I just tried this on {{master}}:

{code}
>>> from pyspark.sql import SQLContext
>>> sqlContext = SQLContext(sc)
>>> a = sc.parallelize([{'d': 4}, {'d': 10}])
>>> sqlContext.inferSchema(a)
.../python/pyspark/sql.py:1017: UserWarning: Using RDD of dict to inferSchema is deprecated
  warnings.warn("Using RDD of dict to inferSchema is deprecated")
MapPartitionsRDD[9] at mapPartitions at SchemaRDD.scala:408
{code}

Is this warning a hint at the work described in this JIRA issue? If so, what is the new way of converting an RDD of Python dictionaries to a SchemaRDD?

> Support for nested data in PySpark SQL
> --------------------------------------
>
>                 Key: SPARK-2010
>                 URL: https://issues.apache.org/jira/browse/SPARK-2010
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Michael Armbrust
>            Assignee: Davies Liu
>            Priority: Blocker
>             Fix For: 1.1.0
>
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)

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