-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] remove chrono literals #186536
[ES|QL] remove chrono literals #186536
Conversation
/ci |
/ci |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Page load bundle
|
Pinging @elastic/kibana-esql (Team:ESQL) |
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.
Looks great, just a code repetition comment
optional: false, | ||
literalOptions: [ |
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.
Why are we repeating them here and not adding them to a common place that can be reused?
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.
Do you mean define an array and reuse it between the generator script and the file it generates (this file)?
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.
Ja!! (to change only in one place)
Summary
The "chrono-literals" can be replaced with the simpler system of
literalOptions
. This is better because it moves us toward having one way to do things and removing Kibana-specific types which don't actually exist in ES|QL and, therefore, can be confusing.