Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Normal
Description
[cqlsh 5.0.1 | Cassandra 3.4 | CQL spec 3.4.0 | Native protocol v4]
Run followings,
drop table if exists test0; CREATE TABLE test0 ( pk int, a int, b text, s text static, PRIMARY KEY (pk, a) ); insert into test0 (pk,a,b,s) values (0,1,'b1','hello b1'); insert into test0 (pk,a,b,s) values (0,2,'b2','hello b2'); insert into test0 (pk,a,b,s) values (0,3,'b3','hello b3'); create index on test0 (b); insert into test0 (pk,a,b,s) values (0,2,'b2 again','b2 again');
Now select one record based on primary key, we got all three records.
cqlsh:ops> select * from test0 where pk=0 and a=2; pk | a | s | b ----+---+----------+---------- 0 | 1 | b2 again | b1 0 | 2 | b2 again | b2 again 0 | 3 | b2 again | b3
cqlsh:ops> desc test0; CREATE TABLE ops.test0 ( pk int, a int, b text, s text static, PRIMARY KEY (pk, a) ) WITH CLUSTERING ORDER BY (a ASC) AND bloom_filter_fp_chance = 0.01 AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'} AND comment = '' AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'} AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'} AND crc_check_chance = 1.0 AND dclocal_read_repair_chance = 0.1 AND default_time_to_live = 0 AND gc_grace_seconds = 864000 AND max_index_interval = 2048 AND memtable_flush_period_in_ms = 0 AND min_index_interval = 128 AND read_repair_chance = 0.0 AND speculative_retry = '99PERCENTILE'; CREATE INDEX test0_b_idx ON ops.test0 (b);
Attachments
Issue Links
- is duplicated by
-
CASSANDRA-11619 "SELECT" returns incorrect result in some cases
- Resolved
-
CASSANDRA-12003 Not filtering Data completely when where clause is applied to clustering column
- Resolved