You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "eugen yushin (JIRA)" <ji...@apache.org> on 2017/10/10 13:02:00 UTC
[jira] [Commented] (SPARK-8186) date/time function: date_add
[ https://issues.apache.org/jira/browse/SPARK-8186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16198630#comment-16198630 ]
eugen yushin commented on SPARK-8186:
-------------------------------------
Unfortunately, current implementation doesn't correspond to provided specification. `date_add` always returns DateType (and truncate time part of timestamp value).
> date/time function: date_add
> ----------------------------
>
> Key: SPARK-8186
> URL: https://issues.apache.org/jira/browse/SPARK-8186
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Reporter: Reynold Xin
> Assignee: Adrian Wang
> Fix For: 1.5.0
>
>
> date_add(timestamp startdate, int days): timestamp
> date_add(timestamp startdate, interval i): timestamp
> date_add(date date, int days): date
> date_add(date date, interval i): date
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org