gengliangwang commented on a change in pull request #35951:
URL: https://github.com/apache/spark/pull/35951#discussion_r833961223
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala
##########
@@ -2999,17 +2999,20 @@ object SubtractDates {
// scalastyle:off line.size.limit
@ExpressionDescription(
- usage = "_FUNC_(sourceTz, targetTz, sourceTs) - Converts the timestamp
without time zone `sourceTs` from the `sourceTz` time zone to `targetTz`. ",
+ usage = "_FUNC_([sourceTz, ]targetTz, sourceTs) - Converts the timestamp
without time zone `sourceTs` from the `sourceTz` time zone to `targetTz`. ",
arguments = """
Arguments:
- * sourceTz - the time zone for the input timestamp
+ * sourceTz - the time zone for the input timestamp.
+ If it is missed, the current session time zone is used as
the source time zone.
* targetTz - the time zone to which the input timestamp should be
converted
* sourceTs - a timestamp without time zone
Review comment:
Shall we update the description of `sourceTs`?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]