-
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
[KQL] Better programmatic API #77085
Comments
Pinging @elastic/kibana-app-arch (Team:AppArch) |
As an aside: this is conceptually similar to the Expression AST Builder (expressions also use PEG). Although the nice thing here is that KQL functions aren't pluggable like expressions, which makes it possible to do a more explicit API as in the example above. |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
Closing this because it's not planned to be resolved in the foreseeable future. It will be tracked in our Icebox and will be re-opened if our priorities change. Feel free to re-open if you think it should be melted sooner. |
KQL is being used in more and more places, such as the saved objects client, in fleet, in alerting, etc.
The KQL parser (built in PEG) doesn't perform well, so in cases where we want to improve performance, we've been interacting directly with the KQL AST nodes. Right now our APIs for doing so aren't very clean or documented.
We'd like to get to the point where we can do something simple like this:
And still get the performance increases we've seen from interacting directly with the AST nodes.
Related: #75693, #76589
The text was updated successfully, but these errors were encountered: