cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-4319) ex msg for cql3 order by constraints says primary filter can be an IN clause which is misleading
Date Thu, 07 Jun 2012 23:29:22 GMT
Dave Brosius created CASSANDRA-4319:
---------------------------------------

             Summary: ex msg for cql3 order by constraints says primary filter can be an IN
clause which is misleading 
                 Key: CASSANDRA-4319
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4319
             Project: Cassandra
          Issue Type: Improvement
          Components: Core
    Affects Versions: 1.2
            Reporter: Dave Brosius
            Priority: Trivial
             Fix For: 1.2
         Attachments: better_order_restriction_error_msg.txt

select * from visitor_audit where visitor_id in ('1_172892701', '1_316755431') order by audit_id
desc limit 6;

gives error

Bad Request: Ordering is only supported is the first part of the PRIMARY KEY is restricted
by an Equal or a IN

which seems to be what the query is doing. 

But it only supports Equal, fix error message.



--
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

        

Mime
View raw message