I would (ideally) want to update the string in Cassandra using pure JSON (for example, similar to the CQL expression INSERT INTO <table_name> JSON '<json_object_string>'; ). However, such functionality does not seem to exist using the CQL UPDATE statement.
One (brain dead) approach that I was considering was to remove and then reinsert the corresponding row. However, this approach definitely has its drawbacks - thus eliminating it from my consideration.
I implemented a version using the CQL UPDATE <table_name> SET <key1> = '<new_value1>', <key2> = '<new_value2>', ..., <keyN> = '<new_valueN>'; . However, if something like " UPDATE <table_name> JSON '<new_json_object_string>'; ", I would really like to know about it.
source share