Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21693#discussion_r200264684
  
    --- 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 --
    
    This is being merged since `tz` column can differ from the constant `tz` 
string for each record which makes sense in usecase.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to