Skip to content

Commit

Permalink
Add saveMode to CustomFS
Browse files Browse the repository at this point in the history
  • Loading branch information
jiachuan.zhu committed Dec 24, 2021
1 parent 04217f9 commit f9e2321
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ class CustomFS(override val uid: String) extends MLSQLSource

objectStoreConf.map { item =>
if (item._1.startsWith("fs.")) {
("spark.hadoop." + item._1, item._2)
// ("spark.hadoop." + item._1, item._2)
(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 f9e2321

Please sign in to comment.