Skip to content

ESIQL Improve LOOKUP JOIN on single keyword#144704

Draft
cimequinox wants to merge 12 commits intoelastic:mainfrom
cimequinox:esql_skip_lucene_query_137269
Draft

ESIQL Improve LOOKUP JOIN on single keyword#144704
cimequinox wants to merge 12 commits intoelastic:mainfrom
cimequinox:esql_skip_lucene_query_137269

Conversation

@cimequinox
Copy link
Contributor

No description provided.

julian-elastic and others added 10 commits March 19, 2026 12:07
(cherry picked from commit 9b73572)

# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/enrich/ExpressionQueryList.java
(cherry picked from commit 2eb3d30)

# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/enrich/ExpressionQueryList.java
(cherry picked from commit 4ac3891)
(cherry picked from commit 8bf5914)
(cherry picked from commit 75d4a75)
(cherry picked from commit f17ed79)
(cherry picked from commit 118fbec)
(cherry picked from commit e4d63c5)
ExpressionQueryList
  * applyAsFastKeywordFilter
    - only applies optimization for KEYWORD fields
    - accepts context and follows pattern used by
      applyAsLeftRightBinaryComparison to lookup dataType and
      channelOffset before passing to BulkKeywordQueryList constructor.

  * getPageCount passes inputPage when delegating to bulkKeywordQueryList

EnrichQuerySourceOperator
  * inputPage passed to bulkQueryList methods

BulkKeywordQueryList
  * holds channelOffset
  * processQuery and getPositionCount take inputPage and
    look up block using channelOffset

(cherry picked from commit 8c92cd9)

# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/enrich/ExpressionQueryList.java
The class is really a specialized helper for the EnrichQuerySourceOperator
(and eventually EnrichQueryFromExchangeOperator).  It doesn't inherit or
extend QueryList or implement the QueryList apis such as doGetQuery.

(cherry picked from commit 08e1256)
Also produce warning when encountering multivalues on left
@cimequinox cimequinox added >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL v9.4.0 labels Mar 21, 2026
@elasticsearchmachine
Copy link
Collaborator

Hi @cimequinox, I've created a changelog YAML for you.

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants