spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxim Gekk (Jira)" <j...@apache.org>
Subject [jira] [Created] (SPARK-29389) Short synonyms of interval units
Date Tue, 08 Oct 2019 10:48:00 GMT
Maxim Gekk created SPARK-29389:
----------------------------------

             Summary: Short synonyms of interval units
                 Key: SPARK-29389
                 URL: https://issues.apache.org/jira/browse/SPARK-29389
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Maxim Gekk


Should be supported the following synonyms:
{code}
                 ["MILLENNIUM", ("MILLENNIA", "MIL", "MILS"),
                   "CENTURY", ("CENTURIES", "C", "CENT"),
                   "DECADE", ("DECADES", "DEC", "DECS"),
                   "YEAR", ("Y", "YEARS", "YR", "YRS"),
                   "QUARTER", ("QTR"),
                   "MONTH", ("MON", "MONS", "MONTHS"),
                   "DAY", ("D", "DAYS"),
                   "HOUR", ("H", "HOURS", "HR", "HRS"),
                   "MINUTE", ("M", "MIN", "MINS", "MINUTES"),
                   "SECOND", ("S", "SEC", "SECONDS", "SECS"),
                   "MILLISECONDS", ("MSEC", "MSECS", "MILLISECON", "MSECONDS", "MS"),
                   "MICROSECONDS", ("USEC", "USECS", "USECONDS", "MICROSECON", "US"),
                   "EPOCH"]
{code}

For example:
{code}
maxim=# select '100000000y 10mon -1000000000d -100000h -10min -10.000001s ago'::interval;
                            interval                            
----------------------------------------------------------------
 -100000000 years -10 mons +1000000000 days 100000:10:10.000001
(1 row)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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


Mime
View raw message