cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morten Wegelbye Holm (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CASSANDRA-887) CLI column names are printed as byte[]
Date Fri, 12 Mar 2010 23:09:27 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Morten Wegelbye Holm updated CASSANDRA-887:
-------------------------------------------

    Attachment: CASSANDRA-887.patch

After applying patch output is:

cassandra> get Demo.Friends ['peter']
=> (column=name, value=Peter, timestamp=1268418181046)
Returned 1 results.
cassandra> get Demo.Address['peter']
=> (super_column=Address,
     (column=BlockNo, value=2, timestamp=1268432619500)
     (column=street, value=OverJerstal, timestamp=1268418132781))
Returned 1 results.

To me a little more readable.

NOTE: There was 3 helper methodes, that I belive is for no use anymore. (At least it compiles
and run's without them anyway) I also toke the liberty to apply the code format rules on some
of the code.

> CLI column names are printed as byte[]
> --------------------------------------
>
>                 Key: CASSANDRA-887
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-887
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>         Environment: winxp / java 1.6 / trunk @ 924488
>            Reporter: Morten Wegelbye Holm
>            Priority: Trivial
>         Attachments: CASSANDRA-887.patch
>
>
> When one uses the cli to fetch data, the printout to the screen is the values of the
byte array, and not the chars. (Don't know about you, but its atleast a little slower to read
for me.)
> Eksampel:
> cassandra> get Demo.Friends ['peter']
> => (column=6e616d65, value=Peter, timestamp=1268418181046)
> Returned 1 results.
> cassandra> get Demo.Friends['peter']
> => (column=6e616d65, value=Peter, timestamp=1268418181046)
> Returned 1 results.
> cassandra> get Demo.Address['peter']
> => (super_column=41646472657373,
>      (column=426c6f636b4e6f, value=2, timestamp=1268432619500)
>      (column=737472656574, value=OverJerstal, timestamp=1268418132781))
> Returned 1 results.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message