Skip to content

Commit

Permalink
Add saveMode to CustomFS
Browse files Browse the repository at this point in the history
Add saveMode to CustomFS
  • Loading branch information
jiachuan.zhu committed Dec 24, 2021
1 parent 04217f9 commit 83fb873
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ class CustomFS(override val uid: String) extends MLSQLSource
("spark.hadoop." + item._1, item._2)
} else item
}.foreach(item => session.conf.set(item._1, item._2))


val format = config.config.getOrElse("implClass", fullFormat)
writer.options(loadFileConf).format(format).save(config.path)
writer.options(loadFileConf).mode(config.mode).format(format).save(config.path)
}


Expand Down

0 comments on commit 83fb873

Please sign in to comment.