Skip to content

Commit

Permalink
Merge pull request #100 from varshamahuli97/cbrelease-4.8.13.1
Browse files Browse the repository at this point in the history
storing nps feeds to a backup table for analysis
  • Loading branch information
varshamahuli97 authored May 17, 2024
2 parents 515bb07 + 9fa57ba commit 06e0679
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,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 06e0679

Please sign in to comment.