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

Narine Kokhlikyan edited comment on SPARK-12922 at 2/24/16 7:48 PM:
--------------------------------------------------------------------

Hi [~sunrui],

I looked at the implementation proposal and it looks good to me. But, I think 
it would be good to add some  details about the aggregation of the 
data/dataframes which we receive from workers.

I've tried to draw a diagram, for the example of group-apply in order to 
understand the bigger picture. 
https://docs.google.com/document/d/1z-sghU8wYKW-oNOajzFH02X0CP9Vd67cuJ085e93vZ8/edit
Please, let me know if I've understood smth wrongly ?

Thanks,
Narine



was (Author: narine):
Hi [~sunrui],

I looked at the implementation proposal and it looks good to me. But, I think 
it would be good to add some  details about the aggregation of the 
data/dataframes which we receive from workers.

I've tried to draw a diagram, for the example of group-apply in order to get 
the big picture. 
https://docs.google.com/document/d/1z-sghU8wYKW-oNOajzFH02X0CP9Vd67cuJ085e93vZ8/edit
Please, let me know if I've understood smth wrongly ?

Thanks,
Narine


> Implement gapply() on DataFrame in SparkR
> -----------------------------------------
>
>                 Key: SPARK-12922
>                 URL: https://issues.apache.org/jira/browse/SPARK-12922
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SparkR
>    Affects Versions: 1.6.0
>            Reporter: Sun Rui
>
> gapply() applies an R function on groups grouped by one or more columns of a 
> DataFrame, and returns a DataFrame. It is like GroupedDataSet.flatMapGroups() 
> in the Dataset API.
> Two API styles are supported:
> 1.
> {code}
> gd <- groupBy(df, col1, ...)
> gapply(gd, function(grouping_key, group) {}, schema)
> {code}
> 2.
> {code}
> gapply(df, grouping_columns, function(grouping_key, group) {}, schema) 
> {code}
> R function input: grouping keys value, a local data.frame of this grouped 
> data 
> R function output: local data.frame
> Schema specifies the Row format of the output of the R function. It must 
> match the R function's output.
> Note that map-side combination (partial aggregation) is not supported, user 
> could do map-side combination via dapply().



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

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

Reply via email to