You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Timo Nentwig <ti...@toptarif.de> on 2011/02/08 11:38:47 UTC

cassandra-cli (output) broken for super columns

This is not what it's supposed to be like, is it?

[default@foo] get foo[page-field];                                                
=> (super_column=20110208,
     (column=82f4c650-2d53-11e0-a08b-58b035f3f60d, value=msg1, timestamp=1297159430471000)
     (column=82f4c650-2d53-11e0-a08b-58b035f3f60e, value=msg2, timestamp=1297159437423000)
     (column=82f4c650-2d53-11e0-a08b-58b035f3f60f, value=msg3, timestamp=1297159439855000))
Returned 1 results.

[default@foo] get foo[page-field][20110208];                                      
, value=msg1, timestamp=1297159430471000)
=> (column=???P-S???X?5??, value=msg2, timestamp=1297159437423000)
=> (column=???P-S???X?5??, value=msg3, timestamp=1297159439855000)
Returned 3 results.

[default@foo] get foo[page-field][20110208][82f4c650-2d53-11e0-a08b-58b035f3f60d];
, value=msg1, timestamp=1297159430471000)

[default@foo] get foo[page-field][20110208][82f4c650-2d53-11e0-a08b-58b035f3f60e];
=> (column=???P-S???X?5??, value=msg2, timestamp=1297159437423000)


        - name: foo
          column_type: Super
          compare_with: AsciiType
          compare_subcolumns_with: TimeUUIDType
          default_validation_class: AsciiType

Re: cassandra-cli (output) broken for super columns

Posted by Aaron Morton <aa...@thelastpickle.com>.
Can you raise a ticket that includes script for Cassandra-cli to insert data that reproduces the fault ?

Aaron

On 9/02/2011, at 3:11 AM, Timo Nentwig <ti...@toptarif.de> wrote:

> 
> On Feb 8, 2011, at 13:41, Stephen Connolly wrote:
> 
>> On 8 February 2011 10:38, Timo Nentwig <ti...@toptarif.de> wrote:
>>> This is not what it's supposed to be like, is it?
> 
> Looks alright:
> 
>>> [default@foo] get foo[page-field];
>>> => (super_column=20110208,
>>>    (column=82f4c650-2d53-11e0-a08b-58b035f3f60d, value=msg1, timestamp=1297159430471000)
>>>    (column=82f4c650-2d53-11e0-a08b-58b035f3f60e, value=msg2, timestamp=1297159437423000)
>>>    (column=82f4c650-2d53-11e0-a08b-58b035f3f60f, value=msg3, timestamp=1297159439855000))
>>> Returned 1 results.
> 
> Missing first half of column 1 is  and UUID is not printed correctly anymore:
> 
>>> [default@foo] get foo[page-field][20110208];
>>> , value=msg1, timestamp=1297159430471000)
>>> => (column=???P-S???X?5??, value=msg2, timestamp=1297159437423000)
>>> => (column=???P-S???X?5??, value=msg3, timestamp=1297159439855000)
>>> Returned 3 results.
> 
> Still prints only half of the column:
> 
>>> [default@foo] get foo[page-field][20110208][82f4c650-2d53-11e0-a08b-58b035f3f60d];
>>> , value=msg1, timestamp=1297159430471000)
> 
> Applies only to first column?!
> 
>>> [default@foo] get foo[page-field][20110208][82f4c650-2d53-11e0-a08b-58b035f3f60e];
>>> => (column=???P-S???X?5??, value=msg2, timestamp=1297159437423000)
>>> 
>>> 
>>>       - name: foo
>>>         column_type: Super
>>>         compare_with: AsciiType
>>>         compare_subcolumns_with: TimeUUIDType
>>>         default_validation_class: AsciiType
>> 
>> Is it the ?'s that you are complaining about or is it something else?
>> 
>> If it is the ?'s have you got a mismatch between the character
>> encoding in your shell and UTF-8?
> 
> Nope. See above :) Esp. that the first column isn't printed completely.

Re: cassandra-cli (output) broken for super columns

Posted by Timo Nentwig <ti...@toptarif.de>.
On Feb 8, 2011, at 13:41, Stephen Connolly wrote:

> On 8 February 2011 10:38, Timo Nentwig <ti...@toptarif.de> wrote:
>> This is not what it's supposed to be like, is it?

Looks alright:

>> [default@foo] get foo[page-field];
>> => (super_column=20110208,
>>     (column=82f4c650-2d53-11e0-a08b-58b035f3f60d, value=msg1, timestamp=1297159430471000)
>>     (column=82f4c650-2d53-11e0-a08b-58b035f3f60e, value=msg2, timestamp=1297159437423000)
>>     (column=82f4c650-2d53-11e0-a08b-58b035f3f60f, value=msg3, timestamp=1297159439855000))
>> Returned 1 results.

Missing first half of column 1 is  and UUID is not printed correctly anymore:

>> [default@foo] get foo[page-field][20110208];
>> , value=msg1, timestamp=1297159430471000)
>> => (column=???P-S???X?5??, value=msg2, timestamp=1297159437423000)
>> => (column=???P-S???X?5??, value=msg3, timestamp=1297159439855000)
>> Returned 3 results.

Still prints only half of the column:

>> [default@foo] get foo[page-field][20110208][82f4c650-2d53-11e0-a08b-58b035f3f60d];
>> , value=msg1, timestamp=1297159430471000)

Applies only to first column?!

>> [default@foo] get foo[page-field][20110208][82f4c650-2d53-11e0-a08b-58b035f3f60e];
>> => (column=???P-S???X?5??, value=msg2, timestamp=1297159437423000)
>> 
>> 
>>        - name: foo
>>          column_type: Super
>>          compare_with: AsciiType
>>          compare_subcolumns_with: TimeUUIDType
>>          default_validation_class: AsciiType
> 
> Is it the ?'s that you are complaining about or is it something else?
> 
> If it is the ?'s have you got a mismatch between the character
> encoding in your shell and UTF-8?

Nope. See above :) Esp. that the first column isn't printed completely.

Re: cassandra-cli (output) broken for super columns

Posted by Stephen Connolly <st...@gmail.com>.
On 8 February 2011 10:38, Timo Nentwig <ti...@toptarif.de> wrote:
> This is not what it's supposed to be like, is it?
>
> [default@foo] get foo[page-field];
> => (super_column=20110208,
>     (column=82f4c650-2d53-11e0-a08b-58b035f3f60d, value=msg1, timestamp=1297159430471000)
>     (column=82f4c650-2d53-11e0-a08b-58b035f3f60e, value=msg2, timestamp=1297159437423000)
>     (column=82f4c650-2d53-11e0-a08b-58b035f3f60f, value=msg3, timestamp=1297159439855000))
> Returned 1 results.
>
> [default@foo] get foo[page-field][20110208];
> , value=msg1, timestamp=1297159430471000)
> => (column=???P-S???X?5??, value=msg2, timestamp=1297159437423000)
> => (column=???P-S???X?5??, value=msg3, timestamp=1297159439855000)
> Returned 3 results.
>
> [default@foo] get foo[page-field][20110208][82f4c650-2d53-11e0-a08b-58b035f3f60d];
> , value=msg1, timestamp=1297159430471000)
>
> [default@foo] get foo[page-field][20110208][82f4c650-2d53-11e0-a08b-58b035f3f60e];
> => (column=???P-S???X?5??, value=msg2, timestamp=1297159437423000)
>
>
>        - name: foo
>          column_type: Super
>          compare_with: AsciiType
>          compare_subcolumns_with: TimeUUIDType
>          default_validation_class: AsciiType

Is it the ?'s that you are complaining about or is it something else?

If it is the ?'s have you got a mismatch between the character
encoding in your shell and UTF-8?