Skip to content

Commit

Permalink
storing nps feeds to a backup table for analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
varshamahuli97 committed May 17, 2024
1 parent fc052c3 commit c024bdb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ object NpsModel extends AbsDashboardModel {
.options(Map("keyspace" -> conf.cassandraUserFeedKeyspace , "table" -> conf.cassandraUserFeedTable))
.mode("append")
.save()

// write the dataframe to cassandra user_feed_backup table
additionalDF.write
.format("org.apache.spark.sql.cassandra")
.options(Map("keyspace" -> "sunbird_notifications" , "table" -> "notification_feed_backup"))
.mode("append")
.save()
}

}

0 comments on commit c024bdb

Please sign in to comment.