MaxGekk opened a new pull request #28687:
URL: https://github.com/apache/spark/pull/28687


   ### What changes were proposed in this pull request?
   1. Replace `def dateFormatter` to `val dateFormatter`.
   2. Modify the `date formatting in hive result` test in `HiveResultSuite` to 
check modified code on various time zones.
   
   ### Why are the changes needed?
   To avoid creation of `DateFormatter` per every incoming date in 
`HiveResult.toHiveString`. This should eliminate unnecessary creation of 
`SimpleDateFormat` instances and compilation of the default pattern 
`yyyy-MM-dd`. The changes can speed up processing of legacy date values of the 
`java.sql.Date` type which is collected by default.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Modified a test in `HiveResultSuite`.


----------------------------------------------------------------
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to