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:37:00 UTC

[jira] [Created] (SPARK-29387) Support `*` and `\` operators for intervals

Maxim Gekk created SPARK-29387:
----------------------------------

             Summary: Support `*` and `\` operators for intervals
                 Key: SPARK-29387
                 URL: https://issues.apache.org/jira/browse/SPARK-29387
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Maxim Gekk


Support `*` by numeric, `/` by numeric. See [https://www.postgresql.org/docs/12/functions-datetime.html]
||Operator||Example||Result||
|*|900 * interval '1 second'|interval '00:15:00'|
|*|21 * interval '1 day'|interval '21 days'|
|/|interval '1 hour' / double precision '1.5'|interval '00:40:00'|



--
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