@@ -1903,7 +1903,7 @@ setMethod("except",
19031903# ' }
19041904setMethod ("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
19291929setMethod ("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",
19681968setMethod ("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