xuanyuanking opened a new pull request #27830: [SPARK-31030][SQL] Backward 
Compatibility for Parsing and formatting Datetime
URL: https://github.com/apache/spark/pull/27830
 
 
   ### What changes were proposed in this pull request?
   In Spark version 2.4 and earlier, datetime parsing, formatting and 
conversion are performed by using the hybrid calendar (Julian + Gregorian). 
   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 (the java.time packages that are based on ISO chronology ). 
The switching job is completed in SPARK-26651. 
   But after the switching, there are some patterns not compatible between Java 
8 and Java 7, Spark needs its own definition on the patterns rather than 
depends on Java API.
   In this PR, we achieve this by writing the document and shadow the 
incompatible letters. See more details in 
[SPARK-31030](https://issues.apache.org/jira/browse/SPARK-31030)
   
   ### Why are the changes needed?
   For backward compatibility.
   
   ### Does this PR introduce any user-facing change?
   No.
   After we define our own datetime parsing and formatting patterns, it's same 
to old Spark version.
   
   ### How was this patch tested?
   Existing and new added UT.
   Locally document test:
   
![image](https://user-images.githubusercontent.com/4833765/76064100-f6acc280-5fc3-11ea-9ef7-82e7dc074205.png)
   
   

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