Github user felixcheung commented on a diff in the pull request: https://github.com/apache/spark/pull/10201#discussion_r47015981 --- Diff: R/pkg/R/DataFrame.R --- @@ -1324,12 +1312,16 @@ setMethod("selectExpr", #' path <- "path/to/file.json" #' df <- jsonFile(sqlContext, path) #' newDF <- withColumn(df, "newCol", df$col1 * 5) +#' # Replace an existing column +#' newDF2 <- withColumn(newDF, "newCol", newDF$col1) --- End diff -- I'm not 100% about the replace existing column behavior - I thought it was intentional that we support multiple columns with the same name before?
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org