You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2022/03/12 11:50:00 UTC

[jira] [Created] (SPARK-38535) Add the datetimeUnit enum to the grammar and use it in TIMESTAMPADD/DIFF

Max Gekk created SPARK-38535:
--------------------------------

             Summary: Add the datetimeUnit enum to the grammar and use it in TIMESTAMPADD/DIFF
                 Key: SPARK-38535
                 URL: https://issues.apache.org/jira/browse/SPARK-38535
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.3.0
            Reporter: Max Gekk
            Assignee: Max Gekk


Add the following enum:

{code}
datetimeUnit
    : YEAR | QUARTER | MONTH
    | WEEK | DAY | DAYOFYEAR
    | HOUR | MINUTE | SECOND | MILLISECOND | MICROSECOND
    ;
{code}
and use it in the grammar rules for TIMESTAMPADD and TIMESTAMPDIFF.

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org