Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/21693#discussion_r200419437
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala ---
@@ -2934,6 +2934,17 @@ object functions {
FromUTCTimestamp(ts.expr, Literal(tz))
}
+ /**
+ * Given a timestamp like '2017-07-14 02:40:00.0', interprets it as a
time in UTC, and renders
+ * that time as a timestamp in the given time zone. For example, 'GMT+1'
would yield
+ * '2017-07-14 03:40:00.0'.
+ * @group datetime_funcs
+ * @since 2.4.0
+ */
+ def from_utc_timestamp(ts: Column, tz: Column): Column = withExpr {
--- End diff --
For these changes, we also need to add the corresponding changes in PySpark
functions.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]