Skip to content
This repository

get_indexed_slices return value #110

Closed
Simbul opened this Issue August 15, 2011 · 2 comments

4 participants

Alessandro Morandi Nate Mueller Robert Jackson yuhanz
Alessandro Morandi

I've noticed that get_indexed_slices returns a nested data structure containing CassandraThrift::ColumnOrSuperColumn objects.
All the other calls seem to be returning an OrderedHash: shouldn't get_indexed_slices be doing the same?

Possibly a call to something like 'multi_key_slices_to_hash()' is missing after line https://github.com/fauna/cassandra/blob/master/lib/cassandra/cassandra.rb#L979 ?

Robert Jackson

You are correct, it should be returning an OrderedHash. I'll take a look at correcting it.

Nate Mueller natemueller closed this issue from a commit August 12, 2012
Nate Mueller Switched get_indexed_slices to return an Ordered Hash
Fixes #110.  All tests now pass on 1.8.
c5f9abc
Nate Mueller natemueller closed this in c5f9abc August 12, 2012
yuhanz

hi, I got a similar issue with gem cassandra 0.17.0 when using 'get_indexed_slices':

slice = keyspace.get_indexed_slices( "my_column_family", conditions)

received as CassandraThrift::ColumnOrSuperColumn objects:

{"59"=>
[<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column name:63617465676f7279, value:416e696d616c73203e2050657420537570706c696573203e20446f6720537570706c696573203e20446f6720466f6f64, timestamp:1357348669132651>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column name:666c61766f72, value:7377656574, timestamp:1357348669129375>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column name:73697a65, value:786c61726765, timestamp:1357348669129375>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column name:776569676874, value:34206c62, timestamp:1357348669129375>>],
"58"=>
[<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column name:63617465676f7279, value:416e696d616c73203e2050657420537570706c696573203e20446f6720537570706c696573203e20446f6720466f6f64, timestamp:1357345104186374>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column name:666c61766f72, value:7370696365, timestamp:1357345104184331>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column name:73697a65, value:6c61726765, timestamp:1357345104184331>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column name:776569676874, value:33206c62, timestamp:1357345104184331>>]}

could you update the gem in the repo? thanks.

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.