Re: Perl/Thrift/Cassandra strangeness

2010-06-08 Thread Jonathan Shook
I can't divulge this particular test data, as it was borrowed from a dataset which is not public. I will see if I can reproduce the scenario, however, using other data suitable for a bug report. On Tue, Jun 8, 2010 at 2:18 PM, Jonathan Ellis wrote: > that does sound like a bug.  can you give us t

Re: Perl/Thrift/Cassandra strangeness

2010-06-08 Thread Jonathan Ellis
that does sound like a bug. can you give us the data to insert that allows reproducing this? On Tue, Jun 8, 2010 at 10:20 AM, Jonathan Shook wrote: > Possible bug... > > Using a slice range with the empty sentinel values, and a count of 1 > sometimes yields 2 ColumnOrSuperColumns, sometimes 1. >

Re: Perl/Thrift/Cassandra strangeness

2010-06-08 Thread Jonathan Shook
Possible bug... Using a slice range with the empty sentinel values, and a count of 1 sometimes yields 2 ColumnOrSuperColumns, sometimes 1. The inconsistency had lead me to believe that the count was not working, hence the additional confusion. There was a particular key which returns exactly 2 Co

Re: Perl/Thrift/Cassandra strangeness

2010-06-08 Thread Jonathan Shook
I was misreading the result with the original slice range. I should have been expecting exactly 2 ColumnOrSuperColumns, which is what I got. I was erroneously expecting only 1. Thanks! Jonathan 2010/6/8 Ted Zlatanov : > On Mon, 7 Jun 2010 17:20:56 -0500 Jonathan Shook wrote: > > JS> The point i

Re: Perl/Thrift/Cassandra strangeness

2010-06-08 Thread Ted Zlatanov
On Mon, 7 Jun 2010 17:20:56 -0500 Jonathan Shook wrote: JS> The point is to get the "last" super-column. ... JS> Is the Perl Thrift client problematic, or is there something else that JS> I am missing? Try Net::Cassandra::Easy; if it does what you want, look at the debug output or trace the cod

Re: Perl/Thrift/Cassandra strangeness

2010-06-07 Thread Jonathan Ellis
you'll get "column name must not be empty" if you specify a list of columns, rather than a slicepredicate. it sounds like you might be trying to specify slices, of a set of supercolumns? you can't do that; you can specify slices of a single columnparent. if that is the CF then you get multiple s

Perl/Thrift/Cassandra strangeness

2010-06-07 Thread Jonathan Shook
I have a structure like this: CF:"Status" { Row("Component42") { SuperColumn(1275948636203) (epoch millis) { sub columns... } } } The supercolumns are dropped in periodically by system A, which is using Hector. System B uses a lightweight perl/Thrift client to reduce proce