suibianwanwank commented on code in PR #3936:
URL: https://github.com/apache/calcite/pull/3936#discussion_r1739793258
##########
site/_docs/reference.md:
##########
@@ -2944,6 +2944,7 @@ In the following:
| b | TIME_SUB(time, interval) | Returns the TIME value
that is *interval* before *time*
| b | TIME_TRUNC(time, timeUnit) | Truncates *time* to the
granularity of *timeUnit*, rounding to the beginning of the unit
| m o p r | TO_CHAR(timestamp, format) | Converts *timestamp* to
a string using the format *format*
+| m | DATE_FORMAT(timestamp, format) | Converts *timestamp* to
a string using the format *format*
Review Comment:
Yeah, I think they're the same. In fact, Mysql does not have a to_char
function.
> {@code TO_CHAR} is not supported in MySQL, but it is supported in *
MariaDB, a variant of MySQL covered by {@link SqlLibrary#MYSQL}.
--
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]