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

add cql function to create timeuuid from date

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              dbrosius David Brosius Assign to me
              Reporter:
              dbrosius David Brosius
              Authors:
              David Brosius
              Reviewers:
              Sylvain Lebresne

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment