You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonas Dohse (Created) (JIRA)" <ji...@apache.org> on 2012/04/17 14:08:16 UTC
[jira] [Created] (CASSANDRA-4160) ORDER BY ... DESC reverses
comparrison predicates in WHERE
ORDER BY ... DESC reverses comparrison predicates in WHERE
----------------------------------------------------------
Key: CASSANDRA-4160
URL: https://issues.apache.org/jira/browse/CASSANDRA-4160
Project: Cassandra
Issue Type: Bug
Components: API
Affects Versions: 1.1.0
Environment: cqlsh
Reporter: Jonas Dohse
When issuing a cql select statement with an ORDER BY ... DESC clause the comparison predicates in the WHERE clause gets reversed.
Example: (see also attached)
SELECT number FROM test WHERE number < 3 ORDER BY number DESC
returns the results expected of WHERE number > 3
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4160) ORDER BY ... DESC reverses
comparrison predicates in WHERE
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13266619#comment-13266619 ]
Jonathan Ellis commented on CASSANDRA-4160:
-------------------------------------------
+1
> ORDER BY ... DESC reverses comparrison predicates in WHERE
> ----------------------------------------------------------
>
> Key: CASSANDRA-4160
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4160
> Project: Cassandra
> Issue Type: Bug
> Components: API
> Affects Versions: 1.1.0
> Environment: cqlsh
> Reporter: Jonas Dohse
> Assignee: Sylvain Lebresne
> Labels: cql3
> Fix For: 1.1.1
>
> Attachments: 4160.txt, test.cql
>
>
> When issuing a cql select statement with an ORDER BY ... DESC clause the comparison predicates in the WHERE clause gets reversed.
> Example: (see also attached)
> SELECT number FROM test WHERE number < 3 ORDER BY number DESC
> returns the results expected of WHERE number > 3
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4160) ORDER BY ... DESC reverses
comparrison predicates in WHERE
Posted by "Jonas Dohse (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13266641#comment-13266641 ]
Jonas Dohse commented on CASSANDRA-4160:
----------------------------------------
Works
> ORDER BY ... DESC reverses comparrison predicates in WHERE
> ----------------------------------------------------------
>
> Key: CASSANDRA-4160
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4160
> Project: Cassandra
> Issue Type: Bug
> Components: API
> Affects Versions: 1.1.0
> Environment: cqlsh
> Reporter: Jonas Dohse
> Assignee: Sylvain Lebresne
> Labels: cql3
> Fix For: 1.1.1
>
> Attachments: 4160.txt, test.cql
>
>
> When issuing a cql select statement with an ORDER BY ... DESC clause the comparison predicates in the WHERE clause gets reversed.
> Example: (see also attached)
> SELECT number FROM test WHERE number < 3 ORDER BY number DESC
> returns the results expected of WHERE number > 3
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-4160) ORDER BY ... DESC reverses
comparrison predicates in WHERE
Posted by "Sylvain Lebresne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sylvain Lebresne updated CASSANDRA-4160:
----------------------------------------
Attachment: 4160.txt
Yep, we were forgetting to change the start and end when giving them to getSlice() on reversed queries. Fix attached.
> ORDER BY ... DESC reverses comparrison predicates in WHERE
> ----------------------------------------------------------
>
> Key: CASSANDRA-4160
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4160
> Project: Cassandra
> Issue Type: Bug
> Components: API
> Affects Versions: 1.1.0
> Environment: cqlsh
> Reporter: Jonas Dohse
> Assignee: Sylvain Lebresne
> Labels: cql3
> Fix For: 1.1.1
>
> Attachments: 4160.txt, test.cql
>
>
> When issuing a cql select statement with an ORDER BY ... DESC clause the comparison predicates in the WHERE clause gets reversed.
> Example: (see also attached)
> SELECT number FROM test WHERE number < 3 ORDER BY number DESC
> returns the results expected of WHERE number > 3
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CASSANDRA-4160) ORDER BY ... DESC reverses
comparrison predicates in WHERE
Posted by "Sylvain Lebresne (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sylvain Lebresne reassigned CASSANDRA-4160:
-------------------------------------------
Assignee: Sylvain Lebresne
> ORDER BY ... DESC reverses comparrison predicates in WHERE
> ----------------------------------------------------------
>
> Key: CASSANDRA-4160
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4160
> Project: Cassandra
> Issue Type: Bug
> Components: API
> Affects Versions: 1.1.0
> Environment: cqlsh
> Reporter: Jonas Dohse
> Assignee: Sylvain Lebresne
> Labels: cql3
> Attachments: test.cql
>
>
> When issuing a cql select statement with an ORDER BY ... DESC clause the comparison predicates in the WHERE clause gets reversed.
> Example: (see also attached)
> SELECT number FROM test WHERE number < 3 ORDER BY number DESC
> returns the results expected of WHERE number > 3
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-4160) ORDER BY ... DESC reverses
comparrison predicates in WHERE
Posted by "Jonas Dohse (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonas Dohse updated CASSANDRA-4160:
-----------------------------------
Attachment: test.cql
Example schema and data to demonstrate bug
> ORDER BY ... DESC reverses comparrison predicates in WHERE
> ----------------------------------------------------------
>
> Key: CASSANDRA-4160
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4160
> Project: Cassandra
> Issue Type: Bug
> Components: API
> Affects Versions: 1.1.0
> Environment: cqlsh
> Reporter: Jonas Dohse
> Labels: cql3
> Attachments: test.cql
>
>
> When issuing a cql select statement with an ORDER BY ... DESC clause the comparison predicates in the WHERE clause gets reversed.
> Example: (see also attached)
> SELECT number FROM test WHERE number < 3 ORDER BY number DESC
> returns the results expected of WHERE number > 3
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira