MaxGekk commented on pull request #28709:
URL: https://github.com/apache/spark/pull/28709#issuecomment-638123922


   @cloud-fan @HyukjinKwon The changes can lead to inconsistent behaviour when 
JVM and session time zones are different:
   ```scala
   $ export TZ="Europe/Moscow"
   $ ./bin/spark-sql -S
   spark-sql> set spark.sql.session.timeZone=America/Los_Angeles;
   spark.sql.session.timeZone   America/Los_Angeles
   spark-sql> select date '2020-06-03';
   2020-06-02
   spark-sql> select make_date(2020, 6, 3);
   2020-06-02
   ```
   This happens because `toJavaDate()` w/ the default JVM time zone is used 
while collecting dates.
   


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