You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (Jira)" <ji...@apache.org> on 2019/10/24 03:10:00 UTC

[jira] [Commented] (SPARK-29583) extract support interval type

    [ https://issues.apache.org/jira/browse/SPARK-29583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16958479#comment-16958479 ] 

Yuming Wang commented on SPARK-29583:
-------------------------------------

cc [~maxgekk]

> extract support interval type
> -----------------------------
>
>                 Key: SPARK-29583
>                 URL: https://issues.apache.org/jira/browse/SPARK-29583
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Yuming Wang
>            Priority: Major
>
> {code:sql}
> postgres=# select extract(minute from INTERVAL '1 YEAR 10 DAYS 50 MINUTES');
>  date_part
> -----------
>         50
> (1 row)
> postgres=# select extract(minute from cast('2019-07-01 17:12:33.068' as timestamp) - cast('2019-07-01 15:57:07.912' as timestamp));
>  date_part
> -----------
>         15
> (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