Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add pycassa.cassandra.c11 thrift API #158

Closed
wants to merge 11 commits into from

2 participants

@hannosch
Owner

This adds the new thrift API from Cassandra 1.1. To be exact 1.1.0 or "19.30.0". There's already a new 19.32.0 available in Cassandra 1.1.1 - but the slightly older version has been used to retain maximum compatibility - especially since there's no Cassandra 1.1.1 version at http://downloads.datastax.com/community/ yet.

The imports in pycassa.cassandra.ttypes and pycassa.connection still use c10 instead of c11. There's test failures with c11, as a number of types have seen changes. For example related to caching as per http://www.datastax.com/dev/blog/caching-in-cassandra-1-1.

I'll try to look into supporting the new caching option on column families next, without impacting backwards compatibility. I haven't updated the changelog, as it looks like this is done once prior to release.

@hannosch
Owner

With DSC 1.1.1 being available, I updated the API to that version. I also added some documentation to explain the Thrift generation process to new contributors like me - or as a reminder to seasoned developers.

Feel free to merge only parts of this pull request or provide any other kind of feedback.

@hannosch
Owner

And finally changed the imports, making c11 the default version. I also added the new caching argument of column families and tested it and the prior version via row_cache_size etc.

@thobbs
Owner

Changes are in master now. Thanks again for your contributions!

@thobbs thobbs closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.