You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/03/03 10:55:39 UTC

[GitHub] MaxGekk opened a new pull request #23945: [SPARK-27035][SQL] Get more precise current time

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org