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

select writetime(colname) returns 0 for static columns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.0.8
    • None
    • None
    • Normal

    Description

      Selecting the write time for a static column returns 0 in Cassandra 2.0 (c3550fe) and an expected timestamp in 2.1 (trunk, acdbbb9). Would it be possible to include this timestamp in a 2.0 release too?

      > CREATE TABLE test (partition_key text, cluster_key text, data text, st text static, PRIMARY KEY(partition_key, cluster_key));
      > INSERT INTO test (partition_key, cluster_key, data, st) VALUES ( 'PK', 'CK', 'DATA', 'ST');
      > SELECT writetime(st), writetime(data) FROM test where partition_key='PK';
      
       writetime(st) | writetime(data)
      ---------------+------------------
                   0 | 1398314681729000
      
      (1 rows)
      

      Attachments

        1. 7081.txt
          8 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            nff Nicolas Favre-Felix
            Sylvain Lebresne
            Tom Hobbs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: