Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.37.0
Description
https://spark.apache.org/docs/3.5.2/sql-ref-functions-builtin.html#date-and-timestamp-functions
> SELECT date_add('2016-07-30', 1);
2016-07-31
Currently, date_add supports the addition of year, month, day and other types, but in Spark, only day date type is supported.
date_add(start_date, num_days) Returns the date that is `num_days` after `start_date`.
The start_date type is the same as the case start_date type in https://issues.apache.org/jira/browse/CALCITE-6396
The num_days type is the day type of date
Attachments
Issue Links
- Blocked
-
CALCITE-6544 Calcite's bigquery Dialect date_add and date_sub functions allow 0000 and BC as results
- Closed
-
CALCITE-6396 Add ADD_MONTHS function (enabled in Oracle, Spark library)
- Closed
-
CALCITE-6612 Add DATE_SUB function (enabled in Spark library)
- Resolved
- links to