Counter column values shows in hex values. Need to show it in string value.
---------------------------------------------------------------------------

                 Key: CASSANDRA-2321
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2321
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.8
         Environment: Linux
            Reporter: Mubarak Seyed
            Priority: Minor
             Fix For: 0.8


CounterColumnType.getString() returns hexString.


public String getString(ByteBuffer bytes)
{ 
       return ByteBufferUtil.bytesToHex(bytes);
}

and python stress.py reader returns


[ColumnOrSuperColumn(column=None, super_column=SuperColumn(name='19', 
columns=[Column(timestamp=1299984960277, name='56', 
value='\x7f\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00,',
 ttl=None), Column(timestamp=1299985019923, name='57', 
value='\x7f\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00;\x00\x00\x00\x00\x00\x00\x08\xfd',
 ttl=None))]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to