Skip to content

Commit

Permalink
ESQL: Fix double lookup and HashJoinExec.addedFields (#115616) (#117338)
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.

Co-authored-by: Jack Pan <[email protected]>
  • Loading branch information
alex-spies and jackpan123 authored Nov 22, 2024
1 parent c02c55e commit 892d4ff
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 892d4ff

Please sign in to comment.