You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by wangmiao1981 <gi...@git.apache.org> on 2016/06/02 21:42:11 UTC

[GitHub] spark pull request #13476: [SPARK-15684][SparkR]Not mask startsWith and ends...

GitHub user wangmiao1981 opened a pull request:

    https://github.com/apache/spark/pull/13476

    [SPARK-15684][SparkR]Not mask startsWith and endsWith in R

    ## What changes were proposed in this pull request?
    
    In R 3.3.0, startsWith and endsWith are added. In this PR, I make the two work in SparkR. 
    1. Remove signature in generic.R
    2. Add setMethod in column.R
    3. Add unit tests
    
    ## How was this patch tested?
    Manually test it through SparkR shell for both column data and string data, which are added into the unit test file.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wangmiao1981/spark start

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/13476.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #13476
    
----
commit 81e5a31c045618780e73ab21272e0c26bed8e1f7
Author: wm624@hotmail.com <wm...@hotmail.com>
Date:   2016-06-02T21:38:48Z

    unmask startsWith and endsWith

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #13476: [SPARK-15684][SparkR]Not mask startsWith and ends...

Posted by wangmiao1981 <gi...@git.apache.org>.
Github user wangmiao1981 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13476#discussion_r65842260
  
    --- Diff: R/pkg/inst/tests/testthat/test_sparkSQL.R ---
    @@ -1137,6 +1137,13 @@ test_that("string operators", {
       expect_equal(count(where(df, like(df$name, "A%"))), 1)
       expect_equal(count(where(df, startsWith(df$name, "A"))), 1)
       expect_equal(first(select(df, substr(df$name, 1, 2)))[[1]], "Mi")
    +  if (as.numeric(R.version$major) >= 3 && as.numeric(R.version$minor) >= 3) {
    --- End diff --
    
    I agree with you that it should work for Column anyway. These are all new tested added by me. I will move the column tests out.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    **[Test build #60027 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60027/consoleFull)** for PR 13476 at commit [`ce14d78`](https://github.com/apache/spark/commit/ce14d78a7b7451f17e521159a27189aa0452a7ff).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    **[Test build #59883 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/59883/consoleFull)** for PR 13476 at commit [`81e5a31`](https://github.com/apache/spark/commit/81e5a31c045618780e73ab21272e0c26bed8e1f7).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #13476: [SPARK-15684][SparkR]Not mask startsWith and ends...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13476#discussion_r65822915
  
    --- Diff: R/pkg/R/generics.R ---
    @@ -691,11 +691,11 @@ setGeneric("contains", function(x, ...) { standardGeneric("contains") })
     
     #' @rdname column
     #' @export
    -setGeneric("desc", function(x) { standardGeneric("desc") })
    +setGeneric("endsWith", function(x, suffix) { standardGeneric("endsWith") })
    --- End diff --
    
    can you move this back into the existing order ? it is sorted alphabetically if i'm not wrong.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #13476: [SPARK-15684][SparkR]Not mask startsWith and ends...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13476#discussion_r65822919
  
    --- Diff: R/pkg/R/generics.R ---
    @@ -723,11 +723,11 @@ setGeneric("like", function(x, ...) { standardGeneric("like") })
     
     #' @rdname column
     #' @export
    -setGeneric("rlike", function(x, ...) { standardGeneric("rlike") })
    +setGeneric("startsWith", function(x, prefix) { standardGeneric("startsWith") })
     
     #' @rdname column
     #' @export
    -setGeneric("startsWith", function(x, ...) { standardGeneric("startsWith") })
    +setGeneric("rlike", function(x, ...) { standardGeneric("rlike") })
    --- End diff --
    
    same as above


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    **[Test build #59952 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/59952/consoleFull)** for PR 13476 at commit [`d256621`](https://github.com/apache/spark/commit/d256621d4df281d4e6a8d6ede0bbf4ff2ef3445c).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #13476: [SPARK-15684][SparkR]Not mask startsWith and ends...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13476#discussion_r65657624
  
    --- Diff: R/pkg/R/generics.R ---
    @@ -695,10 +695,6 @@ setGeneric("desc", function(x) { standardGeneric("desc") })
     
     #' @rdname column
     #' @export
    -setGeneric("endsWith", function(x, ...) { standardGeneric("endsWith") })
    --- End diff --
    
    to be clear, try something like
    ```
    setGeneric("endsWith", function(x, suffix) { standardGeneric("endsWith") })
    ```



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/59883/
    Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    **[Test build #59883 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/59883/consoleFull)** for PR 13476 at commit [`81e5a31`](https://github.com/apache/spark/commit/81e5a31c045618780e73ab21272e0c26bed8e1f7).
     * This patch **fails some tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    **[Test build #59948 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/59948/consoleFull)** for PR 13476 at commit [`b399878`](https://github.com/apache/spark/commit/b399878335693d79aa5a66fed4f3d03a30e8f746).
     * This patch **fails SparkR unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #13476: [SPARK-15684][SparkR]Not mask startsWith and ends...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13476#discussion_r65656447
  
    --- Diff: R/pkg/R/column.R ---
    @@ -151,6 +151,40 @@ setMethod("substr", signature(x = "Column"),
                 column(jc)
               })
     
    +#' startsWith
    +#'
    +#' Determines if entries of x start with string (entries of) prefix respectively,
    +#' where strings are recycled to common lengths.
    +#'
    +#' @rdname startsWith
    +#' @name startsWith
    +#' @family colum_func
    +#'
    +#' @param vector of character string whose “starts” are considered
    --- End diff --
    
    `@param` should be once per parameter. I think we should leave out `@param` on the next line since it is describing the same parameter.
    Also we should name the parameter first at the beginning of the text right after thr `@param` tag, see L146 for an example.
    Finally, add `@param` and description for `x`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    @wangmiao1981 the best way to do this is to check the R version using `R.Version()` (similar to what you did in the unit tests)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    **[Test build #60027 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60027/consoleFull)** for PR 13476 at commit [`ce14d78`](https://github.com/apache/spark/commit/ce14d78a7b7451f17e521159a27189aa0452a7ff).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    please remove the workaround in test_context.R


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #13476: [SPARK-15684][SparkR]Not mask startsWith and ends...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13476#discussion_r65656453
  
    --- Diff: R/pkg/R/column.R ---
    @@ -151,6 +151,40 @@ setMethod("substr", signature(x = "Column"),
                 column(jc)
               })
     
    +#' startsWith
    +#'
    +#' Determines if entries of x start with string (entries of) prefix respectively,
    +#' where strings are recycled to common lengths.
    +#'
    +#' @rdname startsWith
    +#' @name startsWith
    +#' @family colum_func
    +#'
    +#' @param vector of character string whose “starts” are considered
    +#' @param character vector (often of length one)
    +setMethod("startsWith", signature(x = "Column"),
    +          function(x, prefix) {
    +            jc <- callJMethod(x@jc, "startsWith", as.vector(prefix))
    +            column(jc)
    +          })
    +
    +#' endsWith
    +#'
    +#' Determines if entries of x end with string (entries of) suffix respectively,
    +#' where strings are recycled to common lengths.
    +#'
    +#' @rdname endsWith
    +#' @name endsWith
    +#' @family colum_func
    +#'
    +#' @param vector of character string whose “ends” are considered
    --- End diff --
    
    ditto here


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #13476: [SPARK-15684][SparkR]Not mask startsWith and ends...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/13476


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #13476: [SPARK-15684][SparkR]Not mask startsWith and ends...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13476#discussion_r65823398
  
    --- Diff: R/pkg/inst/tests/testthat/test_sparkSQL.R ---
    @@ -1137,6 +1137,13 @@ test_that("string operators", {
       expect_equal(count(where(df, like(df$name, "A%"))), 1)
       expect_equal(count(where(df, startsWith(df$name, "A"))), 1)
       expect_equal(first(select(df, substr(df$name, 1, 2)))[[1]], "Mi")
    +  if (as.numeric(R.version$major) >= 3 && as.numeric(R.version$minor) >= 3) {
    --- End diff --
    
    actually, I think you should only put line 1144 and 1145 into the version check. startsWith(character) and endsWith(character) are not in R 3.2~ that's why the tests fail in Jenkins. The other with DataFrame/column should work though and we should test for it.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/60027/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #13476: [SPARK-15684][SparkR]Not mask startsWith and ends...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13476#discussion_r65823343
  
    --- Diff: R/pkg/inst/tests/testthat/test_sparkSQL.R ---
    @@ -1137,6 +1137,13 @@ test_that("string operators", {
       expect_equal(count(where(df, like(df$name, "A%"))), 1)
       expect_equal(count(where(df, startsWith(df$name, "A"))), 1)
       expect_equal(first(select(df, substr(df$name, 1, 2)))[[1]], "Mi")
    +  if (as.numeric(R.version$major) >= 3 && as.numeric(R.version$minor) >= 3) {
    --- End diff --
    
    Do you know why this is needed? Jenkins is running with R 3.2~, not R 3.3.0, so this check has effectively disabled all the tests below.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #13476: [SPARK-15684][SparkR]Not mask startsWith and ends...

Posted by wangmiao1981 <gi...@git.apache.org>.
Github user wangmiao1981 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13476#discussion_r65742476
  
    --- Diff: R/pkg/R/column.R ---
    @@ -151,6 +151,40 @@ setMethod("substr", signature(x = "Column"),
                 column(jc)
               })
     
    +#' startsWith
    +#'
    +#' Determines if entries of x start with string (entries of) prefix respectively,
    +#' where strings are recycled to common lengths.
    +#'
    +#' @rdname startsWith
    +#' @name startsWith
    +#' @family colum_func
    +#'
    +#' @param vector of character string whose “starts” are considered
    --- End diff --
    
    I will add param name. The first line is for `x` and the second line is for `prefix`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    Merged build finished. Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    Merging this to master and branch-2.0


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/59952/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #13476: [SPARK-15684][SparkR]Not mask startsWith and ends...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13476#discussion_r65656594
  
    --- Diff: R/pkg/R/generics.R ---
    @@ -695,10 +695,6 @@ setGeneric("desc", function(x) { standardGeneric("desc") })
     
     #' @rdname column
     #' @export
    -setGeneric("endsWith", function(x, ...) { standardGeneric("endsWith") })
    --- End diff --
    
    you shouldn't need to remove it - I think if they are updated to match the signature of the existing generic (in newer R 3.3.0) it should work both in the case of R 3.3.0 and R 3.2.0.
    With regards to the comment on R version check - it should not be necessary also.
    @shivaram 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by wangmiao1981 <gi...@git.apache.org>.
Github user wangmiao1981 commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    @shivaram It seems that integration server uses a lower version of R. Do you know whether has a mechanism to optionally compiling functions by checking version? For example, in C, we can use #ifdef #endif to enable/disable code for specific versions.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    LGTM!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    **[Test build #59948 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/59948/consoleFull)** for PR 13476 at commit [`b399878`](https://github.com/apache/spark/commit/b399878335693d79aa5a66fed4f3d03a30e8f746).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by wangmiao1981 <gi...@git.apache.org>.
Github user wangmiao1981 commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    @felixcheung Any more comments? The version check is needed otherwise it can't pass unit tests. All other review comments are done.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #13476: [SPARK-15684][SparkR]Not mask startsWith and ends...

Posted by wangmiao1981 <gi...@git.apache.org>.
Github user wangmiao1981 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13476#discussion_r65657352
  
    --- Diff: R/pkg/R/generics.R ---
    @@ -695,10 +695,6 @@ setGeneric("desc", function(x) { standardGeneric("desc") })
     
     #' @rdname column
     #' @export
    -setGeneric("endsWith", function(x, ...) { standardGeneric("endsWith") })
    --- End diff --
    
    I kept this definition before. But sparkR complains no signature found. The tests only work if I remove it in generic.R. Let me try again.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/59948/
    Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    Merged build finished. Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    **[Test build #59952 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/59952/consoleFull)** for PR 13476 at commit [`d256621`](https://github.com/apache/spark/commit/d256621d4df281d4e6a8d6ede0bbf4ff2ef3445c).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13476: [SPARK-15684][SparkR]Not mask startsWith and endsWith in...

Posted by shivaram <gi...@git.apache.org>.
Github user shivaram commented on the issue:

    https://github.com/apache/spark/pull/13476
  
    Thanks @wangmiao1981 - I think the updated change LGTM. @felixcheung Let me know if you have any more comments


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org