Skip to content

Conversation

@ioanatia
Copy link
Contributor

@ioanatia ioanatia commented Feb 18, 2025

more details in #122832

This is a fix for 8.18, it's not a bug that's present in 8.x or main.

I will add the tests we add here on main and 8.x.
Also separately figure out how we can bubble up the IllegalArgumentException that's actually thrown during query rewrite at the shard level.

@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v8.18.1 labels Feb 18, 2025
@ioanatia ioanatia added Team:Search Meta label for search team Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL and removed needs:triage Requires assignment of a team area label Team:Search Meta label for search team labels Feb 18, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

Copy link
Contributor

@alex-spies alex-spies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @ioanatia , LGTM! The added tests alone are super useful.

}

public Set<String> indexNames(LogicalPlan plan) {
Holder<Set<String>> indexNames = new Holder<>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have little mileage on this part of the code, but the change here matches with the (subtle) change from #121260 and looks correct to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, so because indexNames here did not include the name of the index that actually had the semantic_text field, the query builder rewriter does not rewrite the match query to the underlying semantic query.

@ioanatia ioanatia merged commit aaa09e1 into elastic:8.18 Feb 18, 2025
15 checks passed
@ioanatia ioanatia deleted the fix_semantic_text_with_lookup_join branch February 20, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.18.0 v8.18.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants