我无法在非分区键上执行标准聚合函数。我试图计算不在整个数据集上的特定分区的最小值和最大值。仍然没有用。
表:
CREATE TABLE testminmax (
id int,
user_id text,
iddate int,
a double,
b double,
c double,
d double,
e double,
f double,
PRIMARY KEY (id, user_id)
) WITH CLUSTERING ORDER BY (user_id ASC)
我的cql是select min(a) as min, max(a) as max from testminmax where id =1
我收到以下错误
2017-05-04 17:06:55 [WARNING ] [cassandra.protocol.decode_messag:1087] Server warning: Read 1041 live rows and 100001 tombstone cells for query SELECT * FROM testminmax WHERE id = 1 LIMIT 5000 (see tombstone_warn_threshold)
cassandra.ReadFailure: Error from server: code=1300 [Replica(s) failed to execute read] message="Operation failed - received 0 responses and 1 failures" info={'consistency': 'LOCAL_ONE', 'received_responses': 0, 'failures': 1, 'required_responses': 1}