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

    https://github.com/apache/spark/pull/20015#discussion_r157677400
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala ---
    @@ -2797,6 +2797,21 @@ object functions {
         TruncDate(date.expr, Literal(format))
       }
     
    +  /**
    +   * Returns timestamp truncated to the unit specified by the format.
    +   *
    +   * @param format: 'year', 'yyyy', 'yy' for truncate by year,
    +   *               'month', 'mon', 'mm' for truncate by month,
    +   *               'day', 'dd' for truncate by day,
    +   *               Other options are: second, minute, hour, week, month, 
quarter
    --- End diff --
    
    Maybe, `'second', 'minute', 'hour', 'week', 'month' and 'quarter'`


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to