-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[ES|QL] Walker improvements
#224582
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] Walker improvements
#224582
Conversation
|
/ci |
|
/ci |
|
/ci |
|
Pinging @elastic/kibana-esql (Team:ESQL) |
stratoula
left a comment
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.
Awesome
|
Starting backport for target branches: 8.19 |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
|
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary - Implements traversal of `source` node children (string literals), like `a` and `b` in `FROM a:b`. Before `a` and `b` would not be traversed. - Implements traversal of `order` nodes, like `field DESC` in `FROM a | SORT field DESC`. Before the `field DESC` would be skipped. - Adds tests, which verify that all nodes in the query are traversed by the `Walker`, see `walker_all_nodes.test.ts`. ### Checklist - [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 (cherry picked from commit f433e7a) # Conflicts: # src/platform/packages/shared/kbn-monaco/src/esql/lib/hover/hover.test.ts
## Summary - Implements traversal of `source` node children (string literals), like `a` and `b` in `FROM a:b`. Before `a` and `b` would not be traversed. - Implements traversal of `order` nodes, like `field DESC` in `FROM a | SORT field DESC`. Before the `field DESC` would be skipped. - Adds tests, which verify that all nodes in the query are traversed by the `Walker`, see `walker_all_nodes.test.ts`. ### Checklist - [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
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
# Backport This will backport the following commits from `main` to `8.19`: - [[ES|QL] `Walker` improvements (#224582)](#224582) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Vadim Kibana","email":"82822460+vadimkibana@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-24T17:28:34Z","message":"[ES|QL] `Walker` improvements (#224582)\n\n## Summary\n\n- Implements traversal of `source` node children (string literals), like\n`a` and `b` in `FROM a:b`. Before `a` and `b` would not be traversed.\n- Implements traversal of `order` nodes, like `field DESC` in `FROM a |\nSORT field DESC`. Before the `field DESC` would be skipped.\n- Adds tests, which verify that all nodes in the query are traversed by\nthe `Walker`, see `walker_all_nodes.test.ts`.\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"f433e7aa97ca30f57defea9156fcf9163b1e1468","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["review","release_note:skip","Feature:ES|QL","Team:ESQL","backport:version","v9.1.0","v8.19.0"],"title":"[ES|QL] `Walker` improvements ","number":224582,"url":"https://github.com/elastic/kibana/pull/224582","mergeCommit":{"message":"[ES|QL] `Walker` improvements (#224582)\n\n## Summary\n\n- Implements traversal of `source` node children (string literals), like\n`a` and `b` in `FROM a:b`. Before `a` and `b` would not be traversed.\n- Implements traversal of `order` nodes, like `field DESC` in `FROM a |\nSORT field DESC`. Before the `field DESC` would be skipped.\n- Adds tests, which verify that all nodes in the query are traversed by\nthe `Walker`, see `walker_all_nodes.test.ts`.\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"f433e7aa97ca30f57defea9156fcf9163b1e1468"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/224582","number":224582,"mergeCommit":{"message":"[ES|QL] `Walker` improvements (#224582)\n\n## Summary\n\n- Implements traversal of `source` node children (string literals), like\n`a` and `b` in `FROM a:b`. Before `a` and `b` would not be traversed.\n- Implements traversal of `order` nodes, like `field DESC` in `FROM a |\nSORT field DESC`. Before the `field DESC` would be skipped.\n- Adds tests, which verify that all nodes in the query are traversed by\nthe `Walker`, see `walker_all_nodes.test.ts`.\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"f433e7aa97ca30f57defea9156fcf9163b1e1468"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
Summary
sourcenode children (string literals), likeaandbinFROM a:b. Beforeaandbwould not be traversed.ordernodes, likefield DESCinFROM a | SORT field DESC. Before thefield DESCwould be skipped.Walker, seewalker_all_nodes.test.ts.Checklist