Skip to content

ESIQL Improve LOOKUP JOIN on single keyword#143875

Closed
cimequinox wants to merge 11 commits intoelastic:mainfrom
cimequinox:esql_skip_lucene_query_137269
Closed

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

Conversation

@cimequinox
Copy link
Contributor

No description provided.

julian-elastic and others added 10 commits February 11, 2026 11:47
(cherry picked from commit 9b73572)

# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/enrich/ExpressionQueryList.java
(cherry picked from commit 4ac3891)
(cherry picked from commit 75d4a75)
(cherry picked from commit 118fbec)
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
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.
Also produce warning when encountering multivalues on left
Add evaluator to filter out false-positive multivalue matches
Also generates warning when multivalues are encountered
Add near-duplicate row with multivalues for testing
@cimequinox
Copy link
Contributor Author

cimequinox commented Mar 21, 2026

Closing this as it predates Julian's recent lookup join work.
Opened a revised PR - #144704

@cimequinox cimequinox closed this Mar 21, 2026
@cimequinox cimequinox deleted the esql_skip_lucene_query_137269 branch March 21, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants