raminqaf commented on code in PR #27842:
URL: https://github.com/apache/flink/pull/27842#discussion_r3001043934
##########
docs/data/sql_functions_zh.yml:
##########
@@ -762,6 +784,7 @@ temporal:
description: |
将时间戳 timestamp 转换为日期格式字符串 string 指定格式的字符串值。格式字符串与 Java 的
SimpleDateFormat 兼容。
- sql: TIMESTAMPADD(timeintervalunit, interval, timepoint)
+ description: Returns the timestamp with the interval added. The unit for
the interval is given by the first argument, which should be one of the
following values. SECOND, MINUTE, HOUR, DAY, MONTH, or YEAR.
- sql: TIMESTAMPDIFF(timepointunit, timepoint1, timepoint2)
Review Comment:
After running `SELECT INTERVAL '1' WEEK, INTERVAL '2' QUARTER;` in
[WordCountSQLExample](https://github.com/raminqaf/flink/blob/9d0449f41c4784f29876d779482df1198261cc41/flink-examples/flink-examples-table/src/main/java/org/apache/flink/table/examples/java/basics/WordCountSQLExample.java#L25-L25)
I got
```
+--------------------------------+--------------------------------+
| EXPR$0 | EXPR$1 |
+--------------------------------+--------------------------------+
| +7 00:00:00.000 | +0-06 |
+--------------------------------+--------------------------------+
```
Seems correct to me. I will update the docs
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]