Skip to content

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

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

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

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

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 fa52d1c into elastic:8.19 Jul 1, 2025
11 checks passed
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #10 / alerting api integration security and spaces enabled - Group 2 Connectors ServiceNow SIR ServiceNow SIR - Executor Execution Import set API should handle creating an incident without comments

Metrics [docs]

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