-
Notifications
You must be signed in to change notification settings - Fork 28.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-13389] [SparkR] SparkR support first/last with ignore NAs #11267
Conversation
Test build #51546 has finished for PR 11267 at commit
|
Is this option used by base R / other R libraries like dplyr ? |
function(x) { | ||
jc <- callJStatic("org.apache.spark.sql.functions", "first", x@jc) | ||
signature(x = "characterOrColumn"), | ||
function(x, ignoreNAs = FALSE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably something like na.rm=TRUE
would be more R like
or na.omit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense, I will update. Thanks!
@shivaram Several R packages have similar function such as first, aggregate, etc. Users need this feature in R and did some workaround. |
Test build #51656 has finished for PR 11267 at commit
|
Thanks @yanboliang -- Sorry for the delay in looking at this. I think this looks good. Merging to master |
## What changes were proposed in this pull request? SparkR support first/last with ignore NAs cc sun-rui felixcheung shivaram ## How was the this patch tested? unit tests Author: Yanbo Liang <ybliang8@gmail.com> Closes apache#11267 from yanboliang/spark-13389.
What changes were proposed in this pull request?
SparkR support first/last with ignore NAs
cc @sun-rui @felixcheung @shivaram
How was the this patch tested?
unit tests