Skip to content

Commit

Permalink
ESQL: Fix double lookup and HashJoinExec.addedFields (elastic#115616)
Browse files Browse the repository at this point in the history
Fix a bug in HashJoinExec.addedFields that caused multiple LOOKUPs in a query to fail.
  • Loading branch information
jackpan123 authored and alexey-ivanov-es committed Nov 28, 2024
1 parent b5d4815 commit 6759c04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/changelog/115616.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 115616
summary: Fix double lookup failure on ESQL
area: ES|QL
type: bug
issues:
- 111398
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public List<Attribute> rightFields() {

public Set<Attribute> addedFields() {
if (lazyAddedFields == null) {
lazyAddedFields = outputSet();
lazyAddedFields = new AttributeSet(output());
lazyAddedFields.removeAll(left().output());
}
return lazyAddedFields;
Expand Down

0 comments on commit 6759c04

Please sign in to comment.