yaooqinn commented on a change in pull request #28313:
URL: https://github.com/apache/spark/pull/28313#discussion_r413955942
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala
##########
@@ -1674,9 +1676,21 @@ case class TruncDate(date: Expression, format:
Expression)
@ExpressionDescription(
usage = """
_FUNC_(fmt, ts) - Returns timestamp `ts` truncated to the unit specified
by the format model `fmt`.
- `fmt` should be one of ["MILLENNIUM", "CENTURY", "DECADE", "YEAR", "YYYY",
"YY",
- "QUARTER", "MON", "MONTH", "MM", "WEEK", "DAY",
"DD",
- "HOUR", "MINUTE", "SECOND", "MILLISECOND",
"MICROSECOND"]
+ """,
+ arguments = """
+ Arguments:
+ * fmt - the format representing the unit to be truncated to
+ - "YEAR", "YYYY", "YY"
Review comment:
yea, updated
----------------------------------------------------------------
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]