Github user dwmclary commented on a diff in the pull request:

    https://github.com/apache/spark/pull/3213#discussion_r20610021
  
    --- Diff: python/pyspark/sql.py ---
    @@ -1870,6 +1870,10 @@ def limit(self, num):
             rdd = 
self._jschema_rdd.baseSchemaRDD().limit(num).toJavaSchemaRDD()
             return SchemaRDD(rdd, self.sql_ctx)
     
    +    def toJSON(self, use_unicode=False):
    +        rdd = self._jschema_rdd.baseSchemaRDD().toJSON()
    --- End diff --
    
    Sure thing.
    
    On Wed, Nov 19, 2014 at 1:34 PM, Davies Liu <notificati...@github.com>
    wrote:
    
    > In python/pyspark/sql.py:
    >
    > > @@ -1870,6 +1870,10 @@ def limit(self, num):
    > >          rdd = 
self._jschema_rdd.baseSchemaRDD().limit(num).toJavaSchemaRDD()
    > >          return SchemaRDD(rdd, self.sql_ctx)
    > >
    > > +    def toJSON(self, use_unicode=False):
    > > +        rdd = self._jschema_rdd.baseSchemaRDD().toJSON()
    >
    > Could you put some simple tests (also will be examples in docs) here?
    >
    > —
    > Reply to this email directly or view it on GitHub
    > <https://github.com/apache/spark/pull/3213/files#r20609235>.
    >


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to