Open vadimkibana opened 3 months ago
Implement a high-level API for ES|QL AST mutations.
METADATA
WHERE
LIMIT
SORT
FROM
STATS
The API could look something like below.
Manipulate METADATA fields:
// Remove METADATA field Query.removeFromMetadata('_id'); // Add METADATA field Query.addFromMetadata('_id');
Remove commands:
Query.removeCommands(node => node.name === 'limit'); // or Query.removeCommandsByName('limit')
Change LIMIT of the query:
// Change LIMIT to specific value Query.limit.set(10); // Remove LIMIT command Query.limit.remove();
...
Pinging @elastic/kibana-esql (Team:ESQL)
Implement a high-level API for ES|QL AST mutations.
METADATA
fieldsWHERE
commandsLIMIT
SORT
command expressionsFROM
sourcesSTATS
new field columns usedThe API
The API could look something like below.
Manipulate
METADATA
fields:Remove commands:
Change
LIMIT
of the query:...