Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
None
-
Low
Description
It is not possible to insert an empty map. It looks like the "{}" is reserved only for Set.
So when for table:
CREATE TABLE users ( id text PRIMARY KEY, surname text, favs map<text, text> )
I try to insert map without any elements:
cqlsh:test> insert into users(id,surname,favs) values('aaa','aaa',{});
I get:
Bad Request: Set operations are only supported on Set typed columns, but org.apache.cassandra.db.marshal.MapType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.UTF8Type) given.
text could not be lexed at line 1, char 63