You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (JIRA)" <ji...@apache.org> on 2013/06/19 20:06:25 UTC
[jira] [Created] (CASSANDRA-5666) CQL3 should not allow ranges on
the partition key without the token() method, even for byte ordered
partitioner.
Sylvain Lebresne created CASSANDRA-5666:
-------------------------------------------
Summary: CQL3 should not allow ranges on the partition key without the token() method, even for byte ordered partitioner.
Key: CASSANDRA-5666
URL: https://issues.apache.org/jira/browse/CASSANDRA-5666
Project: Cassandra
Issue Type: Bug
Affects Versions: 1.2.0
Reporter: Sylvain Lebresne
Assignee: Sylvain Lebresne
Fix For: 1.2.6
When the partition is an ordered one, CQL3 currently allows non-equal conditions on the partition key directly. I.e. we allow
{noformat}
CREATE TABLE t (k timeuuid PRIMARY KEY);
SELECT * FROM t WHERE k > ... AND k < ...;
{noformat}
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira