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_r324454993
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/TimestampFormatter.scala
 ##########
 @@ -67,7 +67,7 @@ class Iso8601TimestampFormatter(
 }
 
 /**
- * The formatter parses/formats timestamps according to the pattern 
`yyyy-MM-dd HH:mm:ss.[..fff..]`
+ * The formatter parses/formats timestamps according to the pattern 
`uuuu-MM-dd HH:mm:ss.[..fff..]`
 
 Review comment:
   `ISO_LOCAL_DATE` 
(https://github.com/apache/spark/blob/60be6d2ea3560143515c1ce9d0a7da416f8f595a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeFormatterHelper.scala#L90)
 supports negative years, and in this mean it is equal to `uuuu`

----------------------------------------------------------------
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