Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Creating and inserting a Map into Cassandra

Hello,

 

I have the following issue when importing MsSQLServer data into Cassandra:

I need to import several MsSQLServer tables with varying number of fields into a single Cassandra Table with a 'Map' data type field. I'm having trouble combining, for instance, 5 fields of a schema into one object and inserting into the map in Cassandra. 

 

My current approach was trying to use literal statements with bound variables (e.g "Insert into xx (id,map) values ('whatever', {'nonsense': ?});"), but that does not work, and the following error message pops up

   - "Invalid map literal for sensors: bind variables are not supported inside collection literals"

 

Is the correct approach create a Java Object for each of the different MsSQLServer tables and then inserting it as follows: 

   - "Insert into xx (id, map) values (?,?);"

 

And if so, how would I be able to do this?

 

I would really appreciate some help.

Labels (3)
1 Reply
Anonymous
Not applicable
Author

Bump