cassandra - CQL 3 Unable to Create Column Family With Randomized Name -


when shelled cassandra instance via cqlsh, able create cf using

create columnfamily if not exists    sandbox.foo   ( created timestamp,      updated timestamp,       primary key (created) )  ; 

but when run

create columnfamily if not exists    sandbox.6f4922f45568161a8   ( created timestamp,      updated timestamp,       primary key (created) ) ; 

the command fails w/ error syntaxexception: <errormessage code=2000 [syntax error in cql query] message="line 3:2 no viable alternative @ input '(' (... if not exists sandbox.6f4922f45568161a8 [(]...)">.

any idea i'm going wrong?

yes. create table documentation pretty clear on one:

valid table names strings of alphanumeric characters , underscores, which begin letter.

try placing (random?) letter @ beginning of table name, , should work.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -