Cassandra CLI 在 Cassandra 3.0 中被弃用。想知道是否有可能获得宽行(动态列)的存储引擎表示,而不是关系视图。
例如,在 cassandra-cli 中执行以下命令将为键 'COEXEIGLE' 产生,具有动态列和计数器值:
list table;
RowKey: COEXEIGLE
=> (counter=2014-04-07 18\:45\:00-0700:count, value=5)
=> (counter=2014-04-07 19\:30\:00-0700:count, value=1)
=> (counter=2014-04-07 19\:31\:00-0700:count, value=1)
=> (counter=2014-04-08 19\:31\:00-0700:count, value=2)
1 Row Returned.
虽然,使用 cqlsh,以下 sql 语句,我们将获得数据的传统关系视图:
select * from table;
serialId | time | count
-------------+--------------------------+-------
COEXEIGLE | 2014-04-07 18:45:00-0700 | 5
COEXEIGLE | 2014-04-07 19:30:00-0700 | 1
COEXEIGLE | 2014-04-07 19:31:00-0700 | 1
COEXEIGLE | 2014-04-08 19:31:00-0700 | 2
(4 rows)
同样,好奇我们是否仍然可以看到存储引擎表示而不是关系视图。
卡桑德拉版本:
[cqlsh 4.1.1 | Cassandra 2.0.6 | CQL spec 3.1.1 | Thrift protocol 19.39.0]