Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-38535

Add the datetimeUnit enum to the grammar and use it in TIMESTAMPADD/DIFF

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • SQL
    • None

    Description

      Add the following enum:

      datetimeUnit
          : YEAR | QUARTER | MONTH
          | WEEK | DAY | DAYOFYEAR
          | HOUR | MINUTE | SECOND | MILLISECOND | MICROSECOND
          ;
      

      and use it in the grammar rules for TIMESTAMPADD and TIMESTAMPDIFF.

       

      Attachments

        Issue Links

          Activity

            People

              maxgekk Max Gekk
              maxgekk Max Gekk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: