spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxim Gekk (Jira)" <>
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
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Maxim Gekk

Should be supported the following synonyms:
                 ["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"),

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

This message was sent by Atlassian Jira

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message