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


   ### What changes were proposed in this pull request?
   Move creation of `dateFormatter` and `timestampFormatter` from the 
constructor of the `HiveResult` object to `HiveResult. hiveResultString()`. 
This allows to resolve time zone ID from Spark's session time zone 
`spark.sql.session.timeZone` and create date/timestamp formatters only once 
before collecting `java.sql.Timestamp`/`java.sql.Date` values.
   
   ### Why are the changes needed?
   To fix perf regression comparing to Spark 2.4
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   - By existing test suite `HiveResultSuite` and etc.
   


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