[ES|QL] Improve binary expression grouping#225416
Conversation
|
/ci |
|
Pinging @elastic/kibana-esql (Team:ESQL) |
stratoula
left a comment
There was a problem hiding this comment.
This looks great! Tested it locally with various parenthesis combos and works as expected!
abhishekbhatia1710
left a comment
There was a problem hiding this comment.
LGTM 🚢 from entity-analytics. It’s just one file with a fixed import path and no implementation changes.
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16047482244 |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
|
## Summary Closes elastic#224990 Also: - Improves binary expression grouping with `()` parenthesis in pretty-printer. - Updates binary expression precedence list. ### 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 6d0dc4b)
# Backport This will backport the following commits from `main` to `9.1`: - [[ES|QL] Improve binary expression grouping (#225416)](#225416) <!--- Backport version: 9.6.6 --> ### 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-07-03T10:03:00Z","message":"[ES|QL] Improve binary expression grouping (#225416)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/224990\n\nAlso:\n\n- Improves binary expression grouping with `()` parenthesis in\npretty-printer.\n- Updates binary expression precedence list.\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":"6d0dc4bcf7d8ed90a8634832a2aaa6b1683fc7fb","branchLabelMapping":{"^v9.2.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","v9.2.0"],"title":"[ES|QL] Improve binary expression grouping","number":225416,"url":"https://github.com/elastic/kibana/pull/225416","mergeCommit":{"message":"[ES|QL] Improve binary expression grouping (#225416)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/224990\n\nAlso:\n\n- Improves binary expression grouping with `()` parenthesis in\npretty-printer.\n- Updates binary expression precedence list.\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":"6d0dc4bcf7d8ed90a8634832a2aaa6b1683fc7fb"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225416","number":225416,"mergeCommit":{"message":"[ES|QL] Improve binary expression grouping (#225416)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/224990\n\nAlso:\n\n- Improves binary expression grouping with `()` parenthesis in\npretty-printer.\n- Updates binary expression precedence list.\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":"6d0dc4bcf7d8ed90a8634832a2aaa6b1683fc7fb"}}]}] BACKPORT--> Co-authored-by: Vadim Kibana <82822460+vadimkibana@users.noreply.github.com>
## Summary Closes elastic#224990 Also: - Improves binary expression grouping with `()` parenthesis in pretty-printer. - Updates binary expression precedence list. ### 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
Summary
Closes #224990
Also:
()parenthesis in pretty-printer.Checklist