[ https://issues.apache.org/jira/browse/SPARK-29583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yuming Wang updated SPARK-29583: -------------------------------- Description: {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} was: {code:sql} 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} > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org