Skip to content

Commit

Permalink
Use repartition instead of coalesce
Browse files Browse the repository at this point in the history
  • Loading branch information
echeipesh committed Oct 5, 2021
1 parent cf30d80 commit 5f45510
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object ForestChangeDiagnosticExport extends SummaryExport {
kwargs: Map[String, Any]): Unit = {

summaryDF
.coalesce(1)
.repartition(1)
.write
.options(csvOptions)
.csv(path = outputUrl + "/final")
Expand All @@ -47,7 +47,7 @@ object ForestChangeDiagnosticExport extends SummaryExport {
outputUrl: String): Unit = {

intermediateListDF
.coalesce(1)
.repartition(1)
.write
.options(csvOptions)
.csv(path = outputUrl + "/intermediate")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object GfwProDashboardExport extends SummaryExport {
kwargs: Map[String, Any]): Unit = {

summaryDF
.coalesce(1)
.repartition(1)
.write
.options(csvOptions)
.csv(path = outputUrl + "/final")
Expand Down

0 comments on commit 5f45510

Please sign in to comment.