Skip to content

Conversation

afoucret
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…lastic#134328)

* KQL Prevent boolean operators from being used as literals in tests

The KqlParserBooleanQueryTests were failing because the random query generator could pick boolean operators (AND, OR, NOT) as query terms. This would result in queries like "mapped_string":"AND AND NOT", which the parser would interpret as a MatchQueryBuilder instead of the expected BoolQueryBuilder, causing assertion failures.

 Fixes elastic#133863, elastic#133871

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <[email protected]>
(cherry picked from commit 4ec28fd)
@afoucret afoucret added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Sep 11, 2025
@elasticsearchmachine elasticsearchmachine merged commit 6496364 into elastic:9.1 Sep 11, 2025
34 checks passed
@afoucret afoucret deleted the backport/9.1/pr-134328 branch September 11, 2025 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v9.1.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants