ashK
ashK

Reputation: 733

Spark cassandra update/upsert

I want to do an update/upsert in cassandra using spark RDD, may I know how it is possible?

Update employee set salary = '' where empId = ''

Upvotes: 0

Views: 756

Answers (1)

doanduyhai
doanduyhai

Reputation: 8812

Just use rdd.saveToCassandra() with the columns to be updated/inserted

Upvotes: 1

Related Questions