删除后,columnfamily_name仍会出现在system.schema_columns中

时间:2015-12-31 17:57:48

标签: cassandra-2.0

我有一个名为Customer的表。我删除了它,因为现在当我做desc或选择它时我得到一个错误。

问题是,当我这样做时它仍会出现:

cqlsh:showcase> select column_name, validator, type  from     system.schema_columns
 where columnfamily_name = 'Customer' allow filtering;

 column_name     | validator                                   | type
-----------------+---------------------------------------------+---------------
account_balance |  org.apache.cassandra.db.marshal.DoubleType |       regular
         age |   org.apache.cassandra.db.marshal.Int32Type |       regular
  first_name |    org.apache.cassandra.db.marshal.UTF8Type |       regular
   is_active | org.apache.cassandra.db.marshal.BooleanType |       regular
         key |    org.apache.cassandra.db.marshal.LongType | partition_key
   last_name |    org.apache.cassandra.db.marshal.UTF8Type |       regular
  start_date |    org.apache.cassandra.db.marshal.DateType |       regular

(7 rows)

我如何摆脱它?

drop table Customer 

给出错误:

InvalidRequest: code=2200 [Invalid query] message="unconfigured columnfamily customer"

1 个答案:

答案 0 :(得分:0)

由于表标识符是大写的,因此需要引用它。

DROP TABLE "Customer";