It says that no special effort is required to get a dynamic family of columns. But I always get an exception when I try to set a value for an undefined column.
I created a column family like this:
CREATE TABLE places ( latitude double, longitude double, name text, tags text, PRIMARY KEY (latitude, longitude, name) )
BTW: I needed to define a tag column. Can someone explain to me why? Maybe because all the other columns are part of the index?
Now when you insert such data:
INSERT INTO places ("latitude","longitude","name","tags") VALUES (49.797888,9.934771,'Test','foo,bar')
It works just fine! But when I try:
INSERT INTO places ("latitude","longitude","name","tags","website") VALUES (49.797888,9.934771,'Test','foo,bar','test.de')
I get the following error:
Bad Request: Unknown identifier website text could not be lexed at line 1, char 21
What changes are needed so that I can add columns dynamically?
I am using Cassandra 1.1.9 with CQL3 using cqlsh directly on the server.