Skip to content

Commit 4f2e56b

Browse files
committed
[SPARK-12318][SPARKR] Save mode in SparkR should be error by default
1 parent ed87f6d commit 4f2e56b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

R/pkg/R/DataFrame.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,7 @@ setMethod("except",
19031903
#' }
19041904
setMethod("write.df",
19051905
signature(df = "DataFrame", path = "character"),
1906-
function(df, path, source = NULL, mode = "append", ...){
1906+
function(df, path, source = NULL, mode = "error", ...){
19071907
if (is.null(source)) {
19081908
sqlContext <- get(".sparkRSQLsc", envir = .sparkREnv)
19091909
source <- callJMethod(sqlContext, "getConf", "spark.sql.sources.default",
@@ -1928,7 +1928,7 @@ setMethod("write.df",
19281928
#' @export
19291929
setMethod("saveDF",
19301930
signature(df = "DataFrame", path = "character"),
1931-
function(df, path, source = NULL, mode = "append", ...){
1931+
function(df, path, source = NULL, mode = "error", ...){
19321932
write.df(df, path, source, mode, ...)
19331933
})
19341934

@@ -1968,7 +1968,7 @@ setMethod("saveDF",
19681968
setMethod("saveAsTable",
19691969
signature(df = "DataFrame", tableName = "character", source = "character",
19701970
mode = "character"),
1971-
function(df, tableName, source = NULL, mode="append", ...){
1971+
function(df, tableName, source = NULL, mode="error", ...){
19721972
if (is.null(source)) {
19731973
sqlContext <- get(".sparkRSQLsc", envir = .sparkREnv)
19741974
source <- callJMethod(sqlContext, "getConf", "spark.sql.sources.default",

0 commit comments

Comments
 (0)