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

Julian Hyde commented on CALCITE-6527:
--------------------------------------

Link to its jira.

By 'only date type' do you mean DATE as opposed to TIMESTAMP, or do you mean 
days as opposed to years, months?

> Add DATE_ADD function (enabled in Spark library)
> ------------------------------------------------
>
>                 Key: CALCITE-6527
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6527
>             Project: Calcite
>          Issue Type: New Feature
>            Reporter: Caican Cai
>            Priority: Major
>              Labels: pull-request-available
>
> https://spark.apache.org/docs/3.5.2/sql-ref-functions-builtin.html#date-and-timestamp-functions
> {code:java}
> > SELECT date_add('2016-07-30', 1);
>  2016-07-31
> {code}
> Currently, date_add supports the addition of year, month, day and other 
> types, but in Spark, only day date type is supported.
> {code:java}
> date_add(start_date, num_days)        Returns the date that is `num_days` 
> after `start_date`.
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to