You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hossein Falaki (JIRA)" <ji...@apache.org> on 2016/10/04 00:42:20 UTC

[jira] [Updated] (SPARK-17774) Add support for head on DataFrame Column

     [ https://issues.apache.org/jira/browse/SPARK-17774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hossein Falaki updated SPARK-17774:
-----------------------------------
    Description: 
There was a lot of discussion on SPARK-9325. To summarize the conversation on that ticket regardign {{collect}}
* Pro: Ease of use and maximum compatibility with existing R API
* Con: We do not want to increase maintenance cost by opening arbitrary API. With Spark's DataFrame API {{collect}} does not work on {{Column}} and there is no need for it to work in R.

This ticket is strictly about {{head}}. I propose suporting {{head}} on {{Column}} because:
1. R users are already used to calling {{head(iris$Sepal.Length}}. When they do that on SparkDataFrame they get an error. Not a good experience
2. Adding support for it does not require any change to the backend. It can be trivially done in R code. 

> Add support for head on DataFrame Column
> ----------------------------------------
>
>                 Key: SPARK-17774
>                 URL: https://issues.apache.org/jira/browse/SPARK-17774
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SparkR
>    Affects Versions: 2.0.0
>            Reporter: Hossein Falaki
>
> There was a lot of discussion on SPARK-9325. To summarize the conversation on that ticket regardign {{collect}}
> * Pro: Ease of use and maximum compatibility with existing R API
> * Con: We do not want to increase maintenance cost by opening arbitrary API. With Spark's DataFrame API {{collect}} does not work on {{Column}} and there is no need for it to work in R.
> This ticket is strictly about {{head}}. I propose suporting {{head}} on {{Column}} because:
> 1. R users are already used to calling {{head(iris$Sepal.Length}}. When they do that on SparkDataFrame they get an error. Not a good experience
> 2. Adding support for it does not require any change to the backend. It can be trivially done in R code. 



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