-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-24537][R]Add array_remove / array_zip / map_from_arrays / array_distinct #21645
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
Conversation
|
Test build #92351 has finished for PR 21645 at commit
|
|
@HyukjinKwon @felixcheung |
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.
minor comments, thanks!
R/pkg/R/functions.R
Outdated
| function(x, ...) { | ||
| jcols <- lapply(list(x, ...), function(x) { | ||
| stopifnot(class(x) == "Column") | ||
| x@jc |
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.
nit: probably clearer to name the x in function(x) as something else
| #' @note arrays_zip since 2.4.0 | ||
| setMethod("arrays_zip", | ||
| signature(x = "Column"), | ||
| function(x, ...) { |
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.
should add in doc that ... are Column for this function
https://github.com/huaxingao/spark/blob/87100ec766acf647e91ab14450f1c33c0f929d52/R/pkg/R/functions.R#L198
| #' @aliases array_remove array_remove,Column-method | ||
| #' @note array_remove since 2.4.0 | ||
| setMethod("array_remove", | ||
| signature(x = "Column", value = "ANY"), |
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.
should add in doc that for this function, value is ...?
https://github.com/huaxingao/spark/blob/87100ec766acf647e91ab14450f1c33c0f929d52/R/pkg/R/functions.R#L193
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.
Thanks for your review. I will add in doc.
|
Test build #92891 has finished for PR 21645 at commit
|
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.
LGTM
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.
LGTM too
|
Merged to master. |
|
Thanks! @HyukjinKwon @felixcheung |
What changes were proposed in this pull request?
Add array_remove / array_zip / map_from_arrays / array_distinct functions in SparkR.
How was this patch tested?
Add tests in test_sparkSQL.R