You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kent Yao (Jira)" <ji...@apache.org> on 2020/03/11 09:25:00 UTC

[jira] [Updated] (SPARK-31119) Add interval value support for extract expression as source

     [ https://issues.apache.org/jira/browse/SPARK-31119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kent Yao updated SPARK-31119:
-----------------------------
    Issue Type: Improvement  (was: Bug)

> Add interval value support for extract expression as source
> -----------------------------------------------------------
>
>                 Key: SPARK-31119
>                 URL: https://issues.apache.org/jira/browse/SPARK-31119
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0, 3.1.0
>            Reporter: Kent Yao
>            Priority: Major
>
> {code:java}
> <extract expression> ::= EXTRACT <left paren> <extract field> FROM <extract source> <right paren>
> <extract source> ::= <datetime value expression> | <interval value expression>
> {code}
> We now only support datetime values as extract source for expression but it's alternative function `date_part` supports both datetime and interval.
> For ANSI compliance and the consistency between extract and `date_part`, we support intervals for extract expressions.



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