You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2020/03/18 05:00:00 UTC
[jira] [Assigned] (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 ]
Wenchen Fan reassigned SPARK-31119:
-----------------------------------
Assignee: Kent Yao
> 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.1.0
> Reporter: Kent Yao
> Assignee: 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