Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-8340

Add Additional Date Manipulation Functions (Part 1)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.20.2
    • 1.21.0
    • Functions - Drill
    • None

    Description

      This PR adds several utility functions to facilitate working with dates and times.  These are modeled after the date/time functionality in MySQL.

      Specifically this adds:

      • YEARWEEK(<date>):  Returns an int of year week. IE (202002)
      • TIME_STAMP(<date string>):  Converts most anything that looks like a date string into a timestamp.

      Attachments

        Activity

          People

            cgivre Charles Givre
            cgivre Charles Givre
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: