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

Add unix time conversion functions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.1-alpha1, 4.1
    • CQL/Syntax
    • None

    Description

      It will be useful to have some functions to conver unix time values into C* native types, like:

      • toDate(bigint)
      • toTimestamp(bigint)
      • mintimeuuid(bigint)
      • maxtimeuuid(bigint)

      Additional info for newcomers:

      Those new functions need to be added to org.apache.cassandra.cql3.functions.TimeFcts and some unit tests need to be added to org.apache.cassandra.cql3.functions..TimeFctsTest. The other functions in TimeFcts provide some good example of how to create new functions.
      As it is a new functionality they need to be mentioned in the NEWS.txt file.

      Attachments

        Issue Links

          Activity

            People

              subkanthi Kanthi Subramanian
              blerer Benjamin Lerer
              Kanthi Subramanian
              Benjamin Lerer, Brandon Williams
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: