Github user 3ourroom commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10220#discussion_r47612640
  
    --- Diff: R/pkg/R/DataFrame.R ---
    @@ -1357,17 +1357,46 @@ setMethod("mutate",
               function(.data, ...) {
                 x <- .data
                 cols <- list(...)
    -            stopifnot(length(cols) > 0)
    +            if (length(cols) <= 0) {
    +              return(x)
    +            }
    +
                 stopifnot(class(cols[[1]]) == "Column")
    +
    +            # Check if there is any duplicated column name in the DataFrame
    +            dfCols <- columns(x)
    +            if (length(unique(dfCols)) != length(dfCols)) {
    --- End diff --
    
    
    NAVER - http://www.naver.com/
    --------------------------------------------
    
    [email protected] 님께 보내신 메일 <Re: [spark] 
[SPARK-12235][SPARKR] Enhance mutate() to support replace existing columns. 
(#10220)> 이 다음과 같은 이유로 전송 실패했습니다.
    
    --------------------------------------------
    
    받는 사람이 회원님의 메일을 수신차단 하였습니다. 
    
    
    --------------------------------------------



---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to