MaxGekk opened a new pull request #23945: [SPARK-27035][SQL] Get more precise 
current time
URL: https://github.com/apache/spark/pull/23945
 
 
   ## What changes were proposed in this pull request?
   
   In the PR, I propose to replace `System.currentTimeMillis()` by 
`Instant.now()` in the `CurrentTimestamp` expression. `Instant.now()` uses the 
best available clock in the system to take current time. See 
[JDK-8068730](https://bugs.openjdk.java.net/browse/JDK-8068730) for more 
details.
   
   ## How was this patch tested?
   
   The changes were tested by `DateTimeUtilsSuite` and by `DateFunctionsSuite`.

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