Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Normal
Description
When the partition is an ordered one, CQL3 currently allows non-equal conditions on the partition key directly. I.e. we allow
CREATE TABLE t (k timeuuid PRIMARY KEY); SELECT * FROM t WHERE k > ... AND k < ...;
but this is a bug because even ordered partitioner don't order following the type of the partition key. They order by bytes, always.
So that type of query doesn't do in general what it is supposed to do and we should disallow it. Even for ordered partitioner, the token() function should be used.