File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 99
1010import org .elasticsearch .common .util .Maps ;
1111import org .elasticsearch .xpack .esql .core .expression .Attribute ;
12+ import org .elasticsearch .xpack .esql .core .expression .EmptyAttribute ;
1213import org .elasticsearch .xpack .esql .core .expression .Expressions ;
1314import org .elasticsearch .xpack .esql .core .expression .NamedExpression ;
1415
@@ -49,7 +50,7 @@ public static List<NamedExpression> mergeOutputExpressions(
4950 }
5051 List <NamedExpression > output = new ArrayList <>(childOutput .size () + fields .size ());
5152 for (NamedExpression childAttr : childOutput ) {
52- if (lastPositions .containsKey (childAttr .name ()) == false ) {
53+ if (( childAttr instanceof EmptyAttribute ) == false && lastPositions .containsKey (childAttr .name ()) == false ) {
5354 output .add (childAttr );
5455 }
5556 }
You can’t perform that action at this time.
0 commit comments