MaxGekk opened a new pull request #28024: [SQL][SPARK-31254] Use the current 
session time zone in `HiveResult.toHiveString`
URL: https://github.com/apache/spark/pull/28024
 
 
   ### What changes were proposed in this pull request?
   In the PR, I propose to define `timestampFormatter`, `dateFormatter` and 
`zoneId` as methods of the `HiveResult` object. This should guarantee that the 
formatters pick the current session time zone in `toHiveString()`
   
   ### Why are the changes needed?
   Currently, date/timestamp formatters in `HiveResult.toHiveString` are 
initialized once on instantiation of the `HiveResult` object, and pick up the 
session time zone. If the sessions time zone is changed, the formatters still 
use the previous one.
   
   ### Does this PR introduce any user-facing change?
   Yes
   
   ### How was this patch tested?
   By existing test suites, in particular, by `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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to