ES|QL: Named parameters #107029
Labels
:Analytics/ES|QL
AKA ESQL
>enhancement
ES|QL-ui
Impacts ES|QL UI
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
Currently, ES|QL supports positional parameters, which allows the query author to inject variables into the query. This is useful for dashboards, where there are often global parameters, like a time range filter, or a KQL string. However, there's no way to use positional parameters for this, as the dashboard doesn't know with what intent the queries were written.
Named parameters can solve this:
One issue here is that in some cases the variable might be null. Consider
groupingField
being optional. If it were empty, it would lead to a syntactically invalid query:Possibly we can solve this by allowing some kind of syntax for conditional templating:
The text was updated successfully, but these errors were encountered: