Skip to content

Conversation

@huaxingao
Copy link
Contributor

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

@SparkQA
Copy link

SparkQA commented Jun 26, 2018

Test build #92351 has finished for PR 21645 at commit 87100ec.

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

@huaxingao
Copy link
Contributor Author

@HyukjinKwon @felixcheung
Could you please review the changes? Thank you very much in advance!

Copy link
Member

@felixcheung felixcheung left a comment

Choose a reason for hiding this comment

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

minor comments, thanks!

function(x, ...) {
jcols <- lapply(list(x, ...), function(x) {
stopifnot(class(x) == "Column")
x@jc
Copy link
Member

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, ...) {
Copy link
Member

Choose a reason for hiding this comment

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

#' @aliases array_remove array_remove,Column-method
#' @note array_remove since 2.4.0
setMethod("array_remove",
signature(x = "Column", value = "ANY"),
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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.

@SparkQA
Copy link

SparkQA commented Jul 11, 2018

Test build #92891 has finished for PR 21645 at commit 1b6a113.

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

Copy link
Member

@felixcheung felixcheung left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

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

LGTM too

@HyukjinKwon
Copy link
Member

Merged to master.

@asfgit asfgit closed this in e0f4f20 Jul 13, 2018
@huaxingao
Copy link
Contributor Author

Thanks! @HyukjinKwon @felixcheung

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.

4 participants