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

    https://github.com/apache/spark/pull/1048#discussion_r13636976
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/SchemaRDD.scala ---
    @@ -374,6 +374,9 @@ class SchemaRDD(
     
       override def collect(): Array[Row] = 
queryExecution.executedPlan.executeCollect()
     
    +  override def take(num: Int): Array[Row] =
    +    new SchemaRDD(sqlContext, Limit(Literal(num), logicalPlan)).collect()
    --- End diff --
    
    Yeah if its not too much trouble.  We should probably leave a `@deprecated` 
version of the current `limit` too.


---
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.
---

Reply via email to