You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (Jira)" <ji...@apache.org> on 2019/10/08 10:48:00 UTC
[jira] [Updated] (SPARK-29389) Support synonyms for interval units
[ https://issues.apache.org/jira/browse/SPARK-29389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maxim Gekk updated SPARK-29389:
-------------------------------
Summary: Support synonyms for interval units (was: Short synonyms of interval units)
> Support synonyms for 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
> Priority: Major
>
> 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