MaxGekk commented on a change in pull request #25796: 
[SPARK-28471][SQL][DOC][FOLLOWUP] Fix year patterns in the comments of 
date-time expressions
URL: https://github.com/apache/spark/pull/25796#discussion_r324455150
 
 

 ##########
 File path: sql/core/src/main/scala/org/apache/spark/sql/functions.scala
 ##########
 @@ -2634,8 +2634,8 @@ object functions {
    * See [[java.time.format.DateTimeFormatter]] for valid date and time format 
patterns
    *
    * @param dateExpr A date, timestamp or string. If a string, the data must 
be in a format that
-   *                 can be cast to a timestamp, such as `yyyy-MM-dd` or 
`yyyy-MM-dd HH:mm:ss.SSSS`
-   * @param format A pattern `dd.MM.yyyy` would return a string like 
`18.03.1993`
+   *                 can be cast to a timestamp, such as `uuuu-MM-dd` or 
`uuuu-MM-dd HH:mm:ss.SSSS`
 
 Review comment:
   It uses `TimestampFormatter` which can output negative years using the 
`uuuu` pattern.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to