dalongliu created FLINK-26943:
---------------------------------

             Summary: Add DATE_ADD supported in SQL & Table API
                 Key: FLINK-26943
                 URL: https://issues.apache.org/jira/browse/FLINK-26943
             Project: Flink
          Issue Type: Sub-task
          Components: Table SQL / API
            Reporter: dalongliu
             Fix For: 1.16.0


Returns the date {{numDays}} after {{{}startDate{}}}.

Syntax:
{code:java}
date_add(startDate, numDays) {code}
Arguments:
 * {{{}startDate{}}}: A DATE expression.

 * {{{}numDays{}}}: An INTEGER expression.

Returns:

A DATE.

If {{numDays}} is negative {{abs(num_days)}} are subtracted from 
{{{}startDate{}}}.

If the result date overflows the date range the function raises an error.

Examples:
{code:java}
> SELECT date_add('2016-07-30', 1);
 2016-07-31 {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to