Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从cassandra中的列族行查询多个切片-可能吗?_Cassandra_Cql3 - Fatal编程技术网

从cassandra中的列族行查询多个切片-可能吗?

从cassandra中的列族行查询多个切片-可能吗?,cassandra,cql3,Cassandra,Cql3,假设以下列族: CREATE TABLE points ( shard varchar, series varchar, time timestamp, value varchar, PRIMARY KEY (shard, series, time) ); 我想执行以下查询: select * from points where shard=? and series in (?,...,?) and tim

假设以下列族:

CREATE TABLE points (
    shard       varchar,
    series      varchar,
    time        timestamp,
    value       varchar,
    PRIMARY KEY (shard, series, time)
);
我想执行以下查询:

select * from points where shard=? and series in (?,...,?) and time <? and time >?
我尝试将
series
列拆分为一个显式的复合键,并对复合列的非第一部分进行过滤,但没有效果。在大多数当前的Cassandra或使用Thrift API中可能吗

Bad Request: PRIMARY KEY part series cannot be restricted by IN relation