MaxGekk opened a new pull request #24181: [SPARK-27242][SQL] Make formatting 
TIMESTAMP/DATE literals independent from the default time zone
URL: https://github.com/apache/spark/pull/24181
 
 
   ## What changes were proposed in this pull request?
   
   In the PR, I propose to use the SQL config `spark.sql.session.timeZone` in 
formatting `TIMESTAMP` literals, and make formatting `DATE` literals 
independent from time zone. The changes make parsing and formatting 
`TIMESTAMP`/`DATE` literals consistent, and independent from the default time 
zone of current JVM.
   
   Also this PR ports `TIMESTAMP`/`DATE` literals formatting on Proleptic 
Gregorian Calendar via using `TimestampFormatter`/`DateFormatter`.  
   
   ## How was this patch tested?
   
   Added new tests to `LiteralExpressionSuite`

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