Skip to content

Commit 892d4ff

Browse files
ESQL: Fix double lookup and HashJoinExec.addedFields (#115616) (#117338)
Fix a bug in HashJoinExec.addedFields that caused multiple LOOKUPs in a query to fail. Co-authored-by: Jack Pan <[email protected]>
1 parent c02c55e commit 892d4ff

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/changelog/115616.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 115616
2+
summary: Fix double lookup failure on ESQL
3+
area: ES|QL
4+
type: bug
5+
issues:
6+
- 111398

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/physical/HashJoinExec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public List<Attribute> rightFields() {
9191

9292
public Set<Attribute> addedFields() {
9393
if (lazyAddedFields == null) {
94-
lazyAddedFields = outputSet();
94+
lazyAddedFields = new AttributeSet(output());
9595
lazyAddedFields.removeAll(left().output());
9696
}
9797
return lazyAddedFields;

0 commit comments

Comments
 (0)