spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davies <...@git.apache.org>
Subject [GitHub] spark pull request: [SPARK-2010] [PySpark] [SQL] support nested st...
Date Fri, 01 Aug 2014 20:36:02 GMT
Github user davies commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1598#discussion_r15717487
  
    --- Diff: python/pyspark/sql.py ---
    @@ -522,71 +866,112 @@ def _ssql_ctx(self):
             return self._scala_SQLContext
     
         def inferSchema(self, rdd):
    -        """Infer and apply a schema to an RDD of L{dict}s.
    +        """Infer and apply a schema to an RDD of L{Row}s.
    +
    +        We peek at the first row of the RDD to determine the fields' names
    +        and types. Nested collections are supported, which include array,
    +        dict, list, Row, tuple, namedtuple, or object.
    --- End diff --
    
    It will throw exceptions if there is any empty value (None, [] or {}) in the first row.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message