Skip to content

Conversation

@julian-elastic
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

Fixes _index LIKE <pattern> to always have normal text matching semantics.

Implement a generic ExpressionQuery and ExpressionQueryBuilder that can be serialized to the data node. Then the ExpressionQueryBuilder can build an Automaton using TranslationAware.asLuceneQuery() and execute it in Lucine.

Introduces a breaking change for LIKE on _index fields. The old like behavior is not correct and does not have normal like semantics from ESQL. Customers upgrading from old build to new build might see a regression, where the data changes due to the like filters on clustering produces different results, but the new results are correct.

Behavior for ESQL
New CCS to New => New behavior everywhere
Old CCS to New => Old behavior everywhere (the isForESQL flag is not passed in from old)
New CCS to Old => New behavior for new, old behavior for old (the isForESQL cannot be passed, old does not know about it).
Old CCS to Old => Old behavior everywhere

Closes elastic#129511

(cherry picked from commit 8c4eaf9)

# Conflicts:
#	server/src/main/java/org/elasticsearch/TransportVersions.java
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
#	x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LocalPhysicalPlanOptimizerTests.java
@julian-elastic julian-elastic force-pushed the backport/9.1/pr-130849 branch from 66f008c to 85f4e44 Compare July 9, 2025 20:20
@julian-elastic julian-elastic force-pushed the backport/9.1/pr-130849 branch from 85f4e44 to 6c9a638 Compare July 9, 2025 20:49
@julian-elastic julian-elastic marked this pull request as ready for review July 11, 2025 14:23
@julian-elastic julian-elastic self-assigned this Jul 11, 2025
@julian-elastic julian-elastic requested a review from nik9000 July 11, 2025 16:43
@julian-elastic julian-elastic merged commit 992e62d into elastic:9.1 Jul 14, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants