Skip to content

Conversation

@julian-elastic
Copy link
Contributor

@julian-elastic julian-elastic commented Oct 30, 2025

A verification expection is thrown if there is LOOKUP JOIN with a FULL TEXT FUNCTION on the LOOKUP INDEX. The field from the LOOKUP INDEX is only used in the full text function. There is KEEP that selects some fields, but not the field in question.

The fix involves making sure that all the fields from the JoinOnCondition of the LOOKUP JOIN are collected during resolveFieldNames() to be used for field caps.

Resolves #137396

@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.3.0 labels Oct 30, 2025
@julian-elastic julian-elastic self-assigned this Oct 30, 2025
@julian-elastic julian-elastic added :Analytics/ES|QL AKA ESQL Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >bug and removed needs:triage Requires assignment of a team area label labels Oct 30, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @julian-elastic, I've created a changelog YAML for you.

Copy link
Contributor

@mouhc1ne mouhc1ne left a comment

Choose a reason for hiding this comment

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

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ESQL: Lookup Join On Full Text function will fail if field is only referred to in the full text function

3 participants