Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11444#discussion_r54667527
  
    --- Diff: python/pyspark/sql/context.py ---
    @@ -63,7 +63,33 @@ def toDF(self, schema=None, sampleRatio=None):
             """
             return sqlContext.createDataFrame(self, schema, sampleRatio)
     
    +    def schema(self, datatype):
    --- End diff --
    
    The difference is: this `schema` method support parsing schema string, and 
guarantee no type inference. It also supports RDD of custom objects, and use a 
flat schema here, and it will wrap the custom object into a row automatically.
    
    Is it worth to add this new method?



---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to