You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Philip Thompson (JIRA)" <ji...@apache.org> on 2014/10/16 19:22:34 UTC
[jira] [Resolved] (CASSANDRA-5713) CQL3 token() <= token() does not
work as expected
[ https://issues.apache.org/jira/browse/CASSANDRA-5713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Philip Thompson resolved CASSANDRA-5713.
----------------------------------------
Resolution: Cannot Reproduce
I also can't reproduce on 2.0-HEAD.
> CQL3 token() <= token() does not work as expected
> -------------------------------------------------
>
> Key: CASSANDRA-5713
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5713
> Project: Cassandra
> Issue Type: Bug
> Reporter: Colin B.
> Priority: Minor
>
> Using tokens to go backward through a table in CQL3 does not work as expected.
> Say there is some data available:
> {code}
> > SELECT key FROM data_list where token(key) >= token('6') limit 10;
> key
> -----
> 6
> 7
> 9
> 4
> 3
> A
> 5
> 8
> 2
> 1
> {code}
> I expect:
> {code}
> > SELECT key FROM data_list where token(key) <= token('1') limit 5;
> key
> -----
> A
> 5
> 8
> 2
> 1
> {code}
> However the following occurs:
> {code}
> > SELECT key FROM data_list where token(key) <= token('1') limit 5;
> key
> -----
> 6
> 7
> 9
> 4
> 3
> {code}
> The '<' operator has similar unexpected behavior.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)