Skip to content

Conversation

@felixcheung
Copy link
Member

@SparkQA
Copy link

SparkQA commented Nov 27, 2015

Test build #46830 has finished for PR 10019 at commit e2b1ba0.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these signature changes just for our specific implementation of this generic ? i.e. the na.rm=F will still work for base R function but just not for SparkR ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, since the generic is set properly.
There's a test in test_sparkSQL.R for stats::var with the y param

> var(1:5, 1:5)
[1] 2.5
> var(1:5, 1:5, na.rm=T)
[1] 2.5
> a
 [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 NA 20
> var(a)
[1] NA
> var(a, na.rm=T)
[1] 32.7193

Extra param y, na.rm can still be passed when calling var on a Column but they are ignored (just as before)
I discovered this while working on #9654 for colnames

setMethod("colnames",signature(x = "DataFrame"), function(x)
setGeneric("colnames", function(x, do.NULL = TRUE, prefix = "col")

@shivaram
Copy link
Contributor

LGTM. Merging this

asfgit pushed a commit that referenced this pull request Nov 29, 2015
…, tests, fix doc and add examples

shivaram sun-rui

Author: felixcheung <[email protected]>

Closes #10019 from felixcheung/rfunctionsdoc.

(cherry picked from commit 28e46ab)
Signed-off-by: Shivaram Venkataraman <[email protected]>
@asfgit asfgit closed this in 28e46ab Nov 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants