Skip to content

Commit

Permalink
Remove unused method argument
Browse files Browse the repository at this point in the history
  • Loading branch information
andersonkmi committed Apr 5, 2024
1 parent 190a693 commit cc4a64c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ object DataFrameUtil {
def saveDataFrameToJson(df: DataFrame,
destination: String,
partitions: Int = 1,
saveMode: SaveMode = Overwrite,
header: Boolean = false): Unit = {
saveMode: SaveMode = Overwrite): Unit = {
logger.debug(s"Saving data frame to json with $partitions partitions, mode '${saveMode.name()}', destination '$destination'")
df.coalesce(partitions).write.mode(saveMode).json(destination)
}
Expand Down

0 comments on commit cc4a64c

Please sign in to comment.