[
https://issues.apache.org/jira/browse/CALCITE-6527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Caican Cai reassigned CALCITE-6527:
-----------------------------------
Assignee: Caican Cai
> 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
> Components: core
> Affects Versions: 1.37.0
> Reporter: Caican Cai
> Assignee: Caican Cai
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.38.0
>
>
> 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}
> start_date is of date type and timestamp type
> The num_days type is the day type of date
--
This message was sent by Atlassian Jira
(v8.20.10#820010)