beliefer opened a new pull request, #44616:
URL: https://github.com/apache/spark/pull/44616

   ### What changes were proposed in this pull request?
   This PR propose to replace `SimpleDateFormat` with `DateTimeFormatter`.
   
   
   ### Why are the changes needed?
   According to the javadoc of `SimpleDateFormat`, it recommended to use 
`DateTimeFormatter` too.
   
![1](https://github.com/apache/spark/assets/8486025/97b16bbb-e5b7-4b3f-9bc8-0b0b8c907542)
   In addition, `DateTimeFormatter` have better performance than 
`SimpleDateFormat` too.
   
   Note: `SimpleDateFormat` and `DateTimeFormatter` are not completely 
compatible, for example, the formats supported by `parse` are not exactly the 
same.
   
   
   ### Does this PR introduce _any_ user-facing change?
   'No'.
   
   
   ### How was this patch tested?
   GA and manual test.
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   'No'.
   


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

To unsubscribe, e-mail: [email protected]

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