Skip to content

Commit

Permalink
Merge pull request #1636 from chncaesar/overwrite-blob
Browse files Browse the repository at this point in the history
Add saveMode to CustomFS
  • Loading branch information
lwz9103 authored Dec 24, 2021
2 parents 04217f9 + 83fb873 commit ab07ba8
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 ab07ba8

Please sign in to comment.