[ 
https://issues.apache.org/jira/browse/FLINK-26943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

dalongliu updated FLINK-26943:
------------------------------
    Description: 
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}
 

See more:
 * [Hive|https://cwiki.apache.org/confluence/display/hive/languagemanual+udf] 
[Hive|https://cwiki.apache.org/confluence/display/hive/languagemanual+udf]
 *  

  was:
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}


> 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
>            Priority: Critical
>             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}
>  
> See more:
>  * [Hive|https://cwiki.apache.org/confluence/display/hive/languagemanual+udf] 
> [Hive|https://cwiki.apache.org/confluence/display/hive/languagemanual+udf]
>  *  



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

Reply via email to