Uh oh!
There was an error while loading. Please reload this page.
[SPARK-15672][R][DOC] R programming guide update - #13660
Conversation
vectorijk
commented
Jun 14, 2016
SparkQA
commented
Jun 14, 2016
Test build #60485 has finished for PR 13660 at commit
|
There was a problem hiding this comment.
It will be good to add an introduction here that there are two kinds of user-defined functions we support in SparkR. Something like
In SparkR we support two kinds for user-defined functions
1. Run a given function on a large dataset using dapply. 2. Run many functions in parallel using spark.lapply. shivaram
commented
Jun 14, 2016
Thanks @vectorijk - I left some comments inline. cc @felixcheung |
There was a problem hiding this comment.
perhaps explain why the schema needs to be passed here?
jkbradley
commented
Jun 17, 2016
Ping @vectorijk |
063bc8e to
920c975Comparevectorijk
commented
Jun 19, 2016
@jkbradley@shivaram@felixcheung addressed comments. |
SparkQA
commented
Jun 19, 2016
Test build #60788 has finished for PR 13660 at commit
|
SparkQA
commented
Jun 19, 2016
Test build #60787 has finished for PR 13660 at commit
|
vectorijk
commented
Jun 20, 2016
Jenkins test this again. |
felixcheung
commented
Jun 20, 2016
great! please see pending PR #13752 on removing |
Hi @vectorijk , @felixcheung , @sun-rui , @shivaram Is this on purpose ? |
felixcheung
commented
Jun 20, 2016
@NarineK That is sort of unrelated to this PR since this PR is about the programming guide? But in short, this happens because in the R code both |
shivaram
commented
Jun 20, 2016
Yeah we can remove the duplication by having separate rd files or by just removing documentation for the overlapping arguments (I think in this case @NarineK feel free to open a separate JIRA/PR for this |
SparkQA
commented
Jun 20, 2016
Test build #60863 has finished for PR 13660 at commit
|
| </div> | ||
| ##### dapplyCollect | ||
| Like `dapply`, apply a function to each partition of `SparkDataFrame` and collect the result back. |
There was a problem hiding this comment.
I think its good to say a couple of things here. First that we don't require any schema to be passed in to dapplyCollect (unlike dapply). The other thing is that its good to remind users that this should be used only if the output of the UDF run on all the partitions can fit in driver memory.
SparkQA
commented
Jun 21, 2016
Test build #60918 has finished for PR 13660 at commit
|
sun-rui
commented
Jun 21, 2016
Can you add documentation for gapply() and gapplyCollect() together here? or @NarineK will do in another PR? |
| </div> | ||
| ### Applying User-defined Function | ||
| In SparkR, we support several kinds for User-defined Functions: |
What changes were proposed in this pull request?
Guide for
How was this patch tested?
build locally
