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"
答案 0 :(得分:0)
由于表标识符是大写的,因此需要引用它。
DROP TABLE "Customer";