cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-8767) "Added column does not sort as the last column" when using new python driver
Date Wed, 18 Feb 2015 09:48:11 GMT


Sylvain Lebresne commented on CASSANDRA-8767:

While serializing the {{reversed}} flag could maybe make sense (I say maybe because in practice
we are serializing cells in (non-reversed) comparator order, so we'd have to handle deserialization
specially if we were doing that, which may not be an improvement (but I can agree the way
we handle reversed queries is weird)), I don't think it's practical option. But as the CF
on which this happen in the paging code is a shallow clone in the first place, and pager knows
if it's a reversed query or not, I think we can just clone with the proper insertion order
flag. Attaching trivial patch to show what I mean (untested and without tests, we should push
the test you've been using as dtest).

> "Added column does not sort as the last column" when using new python driver
> ----------------------------------------------------------------------------
>                 Key: CASSANDRA-8767
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core, Drivers (now out of tree)
>         Environment: Cassandra 2.0.10, python-driver 2.1.3
>            Reporter: Russ Garrett
>            Assignee: Tyler Hobbs
>             Fix For: 2.0.13
>         Attachments: 8767-debug-logging.txt, 8767.patch, describe-table.txt, exception-with-logging.txt,
> We've just upgraded one of our python apps from using the old cql library to the new
python-driver. When running one particular query, it produces the attached assertion error
in Cassandra. The query is: 
> bq. SELECT buffer, id, type, json FROM events WHERE buffer = %(bid)s AND idkey = %(idkey)s
> Where buffer and idkey are integer primary keys, and id is the clustering key (ordered
> This query, with identical parameters, does not cause this error using the old cql python
library, or with the cqlsh client..

This message was sent by Atlassian JIRA

View raw message