maropu commented on a change in pull request #30400:
URL: https://github.com/apache/spark/pull/30400#discussion_r525591825
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala
##########
@@ -73,6 +73,21 @@ trait TimestampFormatterHelper extends
TimeZoneAwareExpression {
}
}
+@ExpressionDescription(
+ usage = "_FUNC_() - Returns the current timezone.",
+ examples = """
+ Examples:
+ > SELECT _FUNC_();
+ Asia/Shanghai
+ """,
+ group = "datetime_funcs",
+ since = "3.1.0")
+case class CurrentTimeZone() extends LeafExpression with Unevaluable {
Review comment:
Please update the golden file, too.
https://github.com/apache/spark/blob/master/sql/core/src/test/scala/org/apache/spark/sql/ExpressionsSchemaSuite.scala#L38-L41
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]