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


   ### What changes were proposed in this pull request?
   Compute the current date at the specified time zone using timestamp taken at 
the start of query evaluation.
   
   ### Why are the changes needed?
   According to the doc for 
[current_date()](http://spark.apache.org/docs/latest/api/sql/#current_date), 
the current date should be computed at the start of query evaluation but it can 
be computed multiple times. As a consequence of that, the function can return 
different values if the query is executed at the border of two dates.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes
   
   ### How was this patch tested?
   By existing test suites `ComputeCurrentTimeSuite` and `DateExpressionsSuite`.


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