You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/03/13 04:46:33 UTC

[jira] [Commented] (SPARK-13841) Remove Dataset.collectRows() and Dataset.takeRows()

    [ https://issues.apache.org/jira/browse/SPARK-13841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15192107#comment-15192107 ] 

Apache Spark commented on SPARK-13841:
--------------------------------------

User 'liancheng' has created a pull request for this issue:
https://github.com/apache/spark/pull/11678

> Remove Dataset.collectRows() and Dataset.takeRows()
> ---------------------------------------------------
>
>                 Key: SPARK-13841
>                 URL: https://issues.apache.org/jira/browse/SPARK-13841
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Cheng Lian
>            Assignee: Cheng Lian
>
> These two methods were added because the original {{DataFrame.collect()}} and {{DataFrame.take()}} methods became methods of {{Dataset\[T\]}} after merging DataFrame and Dataset API. However, Java doesn't allow returning generic array, and thus erased their return type to {{Object}}. This breaks compilation of Java code. After discussion, we decided to simply resort to existing {{collectAsList()}} and {{takeAsList()}} methods and remove these two extra specialized ones.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org