Can someone please help me with the exact syntax to use prepared insert / update statements containing map type columns. suppose :
UPDATE abc SET map = map + ? where id = ?
where map is the map type column,
I found an answer Cassandra prepared statements with collections but it just contained the syntax to generate a particular map type object rather binding.
You need to execute it as usual for prepared queries, but you need to pass
Cassandra::Mapobject as first parameter, something like this:You need to pass
Mapobject because CQL's appending to the map expects another map as an argument.