bersprockets opened a new pull request #28345:
URL: https://github.com/apache/spark/pull/28345


   ### What changes were proposed in this pull request?
   
   This PR modifies LegacyDateFormatter#parse to return proleptic Gregorian 
days rather than hybrid Julian days.
   
   ### Why are the changes needed?
   
   The legacy time parser currently returns epoch days in the hybrid Julian 
calendar. However, the callers to the legacy parser (e.g., UnivocityParser, 
JacksonParser) expect epoch days in the proleptic Gregorian calendar. As a 
result, pre-Gregorian dates like '1000-01-01' get interpreted as '1000-01-06'.
   
   ### Does this PR introduce any user-facing change?
   
   No
   
   ### How was this patch tested?
   
   Manual testing and modified existing unit tests.
   


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



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

Reply via email to