Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-4715

cqlsh doesn't properly decode reversed timestamps

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Duplicate
    • Fix Version/s: 1.1.6
    • Component/s: None
    • Labels:
    • Severity:
      Low

      Description

      Example:

      cqlsh:test>
      cqlsh:test> CREATE TABLE testrev (
              ... key text,
              ... rdate timestamp,
              ... num double,
              ... PRIMARY KEY(key,rdate)
              ... ) WITH COMPACT STORAGE
              ...   AND CLUSTERING ORDER BY(rdate DESC);
      cqlsh:test> INSERT INTO testrev(key,rdate,num) VALUES ('foo','2012-01-01',10.5);
      cqlsh:test> select * from test
      test.    testrev
      cqlsh:test> select * from testrev ;
       key | rdate    | num
      -----+----------+------
       foo |   ☺4-£x? | 10.5
      
      Failed to decode value '\x00\x00\x014\x97\xa3x\x80' (for column 'rdate') as 'org.apache.cassandra.db.marshal.ReversedType': global name 'self' is
      not defined
      cqlsh:test>
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tjake T Jake Luciani
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: