Skip to content

[8.19] [ES|QL] Escape keywords in identifier priting (#230491)#230716

Merged
stratoula merged 3 commits intoelastic:8.19from
vadimkibana:backport/8.19/pr-230491
Aug 7, 2025
Merged

[8.19] [ES|QL] Escape keywords in identifier priting (#230491)#230716
stratoula merged 3 commits intoelastic:8.19from
vadimkibana:backport/8.19/pr-230491

Conversation

@vadimkibana
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

## Summary

The `LeafPrinter` escapes identifiers only when needed, for example,
when they contain special characters. However, it must also escape ES|QL
**keywords**, which it did not. Fixes a bug where the `LeafPrinter`
would not escape identifiers which match ES|QL keywords.

### 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 04973b1)

# Conflicts:
#	src/platform/packages/shared/kbn-esql-ast/src/parser/constants.ts
@vadimkibana vadimkibana added the backport This PR is a backport of another PR label Aug 6, 2025
@vadimkibana vadimkibana enabled auto-merge (squash) August 6, 2025 08:10
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
esql 244 246 +2
lists 484 486 +2
securitySolution 7509 7511 +2
stackAlerts 403 405 +2
unifiedSearch 402 404 +2
total +10

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 +532.0B

History

@stratoula stratoula disabled auto-merge August 7, 2025 14:53
@stratoula stratoula merged commit 3d567fc into elastic:8.19 Aug 7, 2025
7 of 8 checks passed
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