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

add cql function to create timeuuid from date

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Won't Fix
    • Fix Version/s: 2.2.0 beta 1
    • Component/s: None
    • Labels:

      Description

      creating timeuuids in cql is unwieldy. Adding a toTimeuuid() function to convert a date/time to a time uuid.

      ie,

      create table foo (key timeuuid primary key, value text);

      insert into foo (key, value) values (toTimeuuid('2009-12-16 19:26:29-0500'), 'hello');

        Attachments

        1. 7367.txt
          3 kB
          David Brosius

          Activity

            People

            • Assignee:
              dbrosius David Brosius
              Reporter:
              dbrosius David Brosius
              Authors:
              David Brosius
              Reviewers:
              Sylvain Lebresne
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: