dictionary - How to Create nested collection map<text,list<text>> type in cassandra database 2.2.1 -
create table tbl_master_values ( dbid int primary key, user_dbid int, reg_dbid int, module_dbid int, fields_value map<text,list<text>>, created_date timestamp, modified_date timestamp);
it returns error:
invalidrequest: code=2200 [invalid query] message="non-frozen collections not allowed inside collections: map<text, list<text>>"
non-frozen collections not allowed inside collections: map>
cassandra telling cannot complete operation without using frozen keyword.
fields_value frozen<map<text, list<text>>>,
keep in mind frozen tells cassandra treat value blob, , prevents individual parts of value being modified. when make change frozen collection serializing , rewriting of items stored. won't solution frequently-changing collection.
Comments
Post a Comment