get_indexed_slices return value #110

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

Comments

Projects
None yet
4 participants
Contributor

Simbul commented Aug 15, 2011

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 ?

Contributor

rwjblue commented Aug 15, 2011

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

yuhanz commented Jan 5, 2013

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