Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1177

Support more time units in EXTRACT function

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • core
    • None

    Description

      Currently extract function support following units YEAR, MONTH, DAY, HOUR, MINUTE, SECOND. Add support for more units: CENTURY, DECADE, DOW, DOY, EPOCH, MILLENNIUM, QUARTER, WEEK.

      Definitions of these units is similar to Postgres: http://www.postgresql.org/docs/9.1/static/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT

      Attachments

        Issue Links

          Activity

            People

              julianhyde Julian Hyde
              vkorukanti Venki Korukanti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: