The Cassandra Map type does not support values ββ(or keys) of different types. However, you can create a Custom type to handle this.
aploetz@cqlsh :stackoverflow2> CREATE TYPE testac (test text, a int, c int); aploetz@cqlsh :stackoverflow2> CREATE TABLE testactable ( key int, values frozen<testac>, PRIMARY KEY (key)); aploetz@cqlsh :stackoverflow2> INSERT INTO testactable (key,values) VALUES (1,{test: 'test1', a: 1, c: 2}); aploetz@cqlsh :stackoverflow2> SELECT * FROm testactable ; key | values -----+----------------------------- 1 | {test: 'test1', a: 1, c: 2} (1 rows)
source share