当通过cqlsh炮击我的Cassandra实例时,我可以使用
创建一个CFCREATE COLUMNFAMILY IF NOT EXISTS
sandbox.foo
( created TIMESTAMP,
updated TIMESTAMP,
PRIMARY KEY (created) ) ;
但是当我跑步时
CREATE COLUMNFAMILY IF NOT EXISTS
sandbox.6f4922f45568161a8
( created TIMESTAMP,
updated TIMESTAMP,
PRIMARY KEY (created) ) ;
命令失败,错误为SyntaxException: <ErrorMessage code=2000 [Syntax error in CQL query] message="line 3:2 no viable alternative at input '(' (... IF NOT EXISTS sandbox.6f4922f45568161a8 [(]...)">
。
知道我哪里出错了?
答案 0 :(得分:1)