srowen commented on a change in pull request #24325: [SPARK-27414][SQL] make it 
clear that date type is timezone independent
URL: https://github.com/apache/spark/pull/24325#discussion_r273577690
 
 

 ##########
 File path: docs/sql-migration-guide-upgrade.md
 ##########
 @@ -122,7 +122,7 @@ license: |
 
   - In Spark version 2.4 and earlier, the `current_date` function returns the 
current date shifted according to the SQL config `spark.sql.session.timeZone`. 
Since Spark 3.0, the function always returns the current date in the `UTC` time 
zone.
 
 Review comment:
   Yes, because getting from the time 'now' to a day still depends on a 
timezone. Right now it's April 9 2019 where I am but April 10 2019 elsewhere, 
even if those two dates themselves do not name a point in time without a 
timezone. So here we define the result to always be the day it is 'now' in UTC

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