spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davies <>
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:
    --- Diff: python/pyspark/ ---
    @@ -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 or file a JIRA ticket
with INFRA.

View raw message