dylanhz commented on code in PR #24988:
URL: https://github.com/apache/flink/pull/24988#discussion_r1730611766


##########
docs/data/sql_functions.yml:
##########
@@ -653,6 +653,16 @@ temporal:
         CURRENT_WATERMARK(ts) IS NULL
         OR ts > CURRENT_WATERMARK(ts)
       ```
+  - sql: DATE_ADD(startDate, numDays)
+    table: startDate.dateAdd(numDays)
+    description: |
+      Returns the date numDays after startDate.
+      If numDays is negative, -numDays are subtracted from startDate.
+      
+      `startDate <DATE | TIMESTAMP_WITHOUT_TIME_ZONE | 
TIMESTAMP_WITH_LOCAL_TIME_ZONE | CHAR | VARCHAR>, numDays <TINYINT | SMALLINT | 
INTEGER | BIGINT>`
+      
+      Returns a `DATE`, `NULL` if any of the arguments are `NULL` or result 
overflows or date string invalid.

Review Comment:
   It seems both of them are acceptable.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to