Skip to content

Commit

Permalink
commented the write to csv from zipReports
Browse files Browse the repository at this point in the history
  • Loading branch information
varshamahuli97 committed Aug 11, 2024
1 parent 47e6cd4 commit 067b3ca
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ object ZipReportsWithSecurityModel extends AbsDashboardModel {
//fetch the org hierarchy
var (orgNamesDF, userDF, userOrgDF) = getOrgUserDataFrames()
val orgHierarchyDF = getDetailedHierarchy(userOrgDF)
orgHierarchyDF.repartition(1).write.format("com.databricks.spark.csv").option("header", "true").save("/home/analytics/varsha/hierarchyDF")
orgNamesDF.select("orgID", "orgName").repartition(1).write.format("com.databricks.spark.csv").option("header", "true").save("/home/analytics/varsha/orgDF")
// Start of merging folders

// Define variables for source, destination directories and date.
Expand Down Expand Up @@ -153,7 +151,7 @@ object ZipReportsWithSecurityModel extends AbsDashboardModel {
}
// Upload the zip file to blob storage
val mdoid = mdoidFolder.getName
println(s"Password-protected ZIP file created and uploaded for $mdoid: $zipFilePath")
println(s"Individual ZIP file created for $mdoid: $zipFilePath")
}
}
} else {
Expand Down

0 comments on commit 067b3ca

Please sign in to comment.