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

High resolution types for timestamp and time

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.2.0 beta 1
    • None
    • None
    • Clients

    Description

      CASSANDRA-7523 adds support for date and time data types using the same precision as current timestamp type.

      This ticket is about to add high resolution (nanosecond precision) types for timestamp and time. It should be easy to use with Joda API and Java 8 java.time API.

      Additionally support for time zone / offset (might need be handled differently) could be introduced using new time and timestamp types.

      Idea for binary serialization format (from java.time API):
      (int)year (short)month (short)day (byte)hour (byte)minute (byte)second (int)nano (int)offsetInSeconds

      Additional thinking is required to make even the time zone / offset types comparable (even for different TZ offsets) - so these might not be covered by this ticket.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              snazy Robert Stupp
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: