-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES|QL: pin 'now' as query start time #113777
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
FTR: https://github.com/elastic/elasticsearch/pull/103474/files#r1427142330 I'm wondering if this method shouldn't be replaced with what it does on the result of |
My original suggestion was to place the |
👍 |
Right now the initialization is in the constructor; I think we made the change when we removed EsqlConfiguration About the "zoned" |
There are two times now, one init'ed in the c'tor (the old one), the other one passed in, added in the PR Andrei mentioned (a new one). We could/should make just one out of them.
That's my understanding too. |
Oh, I was looking at the wrong place... 🤦 I'm not sure I fully understand the difference between I don't know, I'm confused... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems right.
I'm not sure why we have the nanosecond one to be honest. |
Oh! Sorry one second. |
Ok. I don't see a The other thing is the NTP can change the absolute time. That's sort of it's job - time syncing. Generally NTP will change the absolute timers slowly, but if you are trying to figure out "how much time did this take" then stuff like NTP can get in the way. Sometimes you'll get negative numbers for "took" time if you use the absolute clock. But the relative clock is fine for this. |
I'd say this is enough to keep |
💚 Backport successful
|
Since |
Co-authored-by: Elastic Machine <[email protected]>
Use
now
(already present in ESQL Configuration) to determine the start time of the query.The serialization is already in place, so the value is already shared between the nodes.