Github user frreiss commented on a diff in the pull request:
https://github.com/apache/spark/pull/10428#discussion_r55294135
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala
---
@@ -109,7 +121,13 @@ case class DateSub(startDate: Expression, days:
Expression)
})
}
}
-
+/*
+ * Returns the hour componemnt of the string/timestamp/interval
+ */
+@ExpressionDescription(
+ usage = "_FUNC_(timestamp_param) - Returns the hour componemnt of the
timestamp value.",
+ extended = "> SELECT _FUNC_('2001-01-02 11:35:55');\n '11'\n" +
--- End diff --
The example should make it clearer that the hour component here is from the
24-hour representation of the timestamp in the local time zone.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]