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

    https://github.com/apache/spark/pull/17801#discussion_r115132676
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala ---
    @@ -2657,22 +2661,27 @@ object functions {
     
       /**
        * Converts time string in format yyyy-MM-dd HH:mm:ss to Unix timestamp 
(in seconds),
    -   * using the default timezone and the default locale, return null if 
fail.
    +   * using the default timezone and the default locale.
    +   * Returns `null` if fails.
    +   *
        * @group datetime_funcs
        * @since 1.5.0
        */
       def unix_timestamp(s: Column): Column = withExpr {
         UnixTimestamp(s.expr, Literal("yyyy-MM-dd HH:mm:ss"))
       }
     
    +  // scalastyle:off line.size.limit
       /**
    -   * Convert time string with given pattern
    -   * (see 
[http://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html])
    -   * to Unix time stamp (in seconds), return null if fail.
    +   * Converts time string with given pattern to Unix timestamp (in 
seconds).
    +   * Returns `null` if fails.
    +   *
    +   * @see <a 
href="http://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html";>Customizing
 Formats</a>
    --- End diff --
    
    that can avoid having scalastyle:off


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to