kibana/examples/esql_ast_inspector
Vadim Kibana 8904cb068c
[ES|QL] Improve the Builder class (#203558)
## Summary

Partially addresses https://github.com/elastic/kibana/issues/202113

- Makes sure it is possible to construct any AST using the `Builder`
class
- Fixes few bugs in pretty-printer
- No space is added before unary `-` or `+` expression, for example,
`-123`.
  - Source cluster is now printed `cluster:my_index` 


### Checklist

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
2024-12-13 16:19:10 +01:00
..
.storybook [ES|QL] Comment parsing and pretty-printing (#192173) 2024-09-26 12:34:38 +02:00
public [ES|QL] Improve the Builder class (#203558) 2024-12-13 16:19:10 +01:00
kibana.jsonc [ES|QL] add AST inspector to examples (#182720) 2024-05-10 13:47:06 -05:00
README.md [ES|QL] add AST inspector to examples (#182720) 2024-05-10 13:47:06 -05:00
tsconfig.json [ES|QL] add AST inspector to examples (#182720) 2024-05-10 13:47:06 -05:00

esql_ast_inspector

ES|QL AST inspector tool

To run this example, start kibana with the --run-examples flag.

yarn start --run-examples