mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
ES|QL: pin 'now' as query start time (#113777)
This commit is contained in:
parent
852c960960
commit
ee73969bbb
1 changed files with 1 additions and 3 deletions
|
@ -171,11 +171,9 @@ public class Configuration implements Writeable {
|
|||
/**
|
||||
* Returns the current time in milliseconds from the time epoch for the execution of this request.
|
||||
* It ensures consistency by using the same value on all nodes involved in the search request.
|
||||
* Note: Currently, it returns {@link System#currentTimeMillis()}, but this value will be serialized between nodes.
|
||||
*/
|
||||
public long absoluteStartedTimeInMillis() {
|
||||
// MP TODO: I'm confused - Why is this not a fixed value taken at the start of the query processing?
|
||||
return System.currentTimeMillis();
|
||||
return now.toInstant().toEpochMilli();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue