File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -777,10 +777,10 @@ private Join resolveLookupJoin(LookupJoin join) {
777777 // rewrite the join into an equi-join between the field with the same name between left and right
778778 if (type == JoinTypes .LEFT ) {
779779 // the lookup cannot be resolved, bail out
780- if (Expressions .anyMatch (join . config (). leftFields (), c -> c instanceof UnresolvedAttribute ua && ua . customMessage ())) {
781- return join ;
782- }
783- if ( Expressions . anyMatch ( join . config (). rightFields (), c -> c instanceof UnresolvedAttribute ua && ua . customMessage () )) {
780+ if (Expressions .anyMatch (
781+ join . references (). stream (). toList (),
782+ c -> c instanceof UnresolvedAttribute ua && ua . customMessage ()
783+ )) {
784784 return join ;
785785 }
786786 List <Attribute > leftKeys = new ArrayList <>();
You can’t perform that action at this time.
0 commit comments