cloud-fan commented on a change in pull request #27830: [SPARK-31030][SQL] 
Backward Compatibility for Parsing and formatting Datetime
URL: https://github.com/apache/spark/pull/27830#discussion_r389590856
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala
 ##########
 @@ -906,4 +906,44 @@ object DateTimeUtils {
     val days = period.getDays
     new CalendarInterval(months, days, 0)
   }
+
+  /**
+   * Since the Proleptic Gregorian calendar is de-facto calendar worldwide, as 
well as the chosen
+   * one in ANSI SQL standard, Spark 3.0 switches to it by using Java 8 API 
classes. However, the
 
 Review comment:
   It's a bit confusing to say java 7 & 8 as the old APIs are also available in 
java 8.
   
   How about `SimpleDateFormat` and `DateTimeFormatter`?

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