Skip to content

[9.1] [ES|QL] Stop ANTLR token monkey-patching in parser (#225629)#226011

Merged
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-225629
Jul 1, 2025
Merged

[9.1] [ES|QL] Stop ANTLR token monkey-patching in parser (#225629)#226011
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-225629

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

## Summary

A small cleanup in parser code in the ES|QL AST package. We want to show
users readable syntax error token names like `[` and `(` (instead of
`LP`), however, we should not monkey-patch ANTLR generated files to
achieve this. Instead, this PR moves the message improvement code to the
validation & autocomplete package, where the messages are actually used.

### 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 750cc7c)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jul 1, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) July 1, 2025 13:56
@kibanamachine kibanamachine merged commit 209a5df into elastic:9.1 Jul 1, 2025
14 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 9.8MB 9.8MB -223.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
kbnUiSharedDeps-srcJs 3.7MB 3.7MB -92.0B

cc @vadimkibana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants