Skip to content

Commit d44ee90

Browse files
committed
iter
1 parent 38cee34 commit d44ee90

File tree

1 file changed

+1
-3
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/rules/logical

1 file changed

+1
-3
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/rules/logical/PruneColumns.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,7 @@ private static LogicalPlan pruneColumnsInFork(Fork fork, AttributeSet.Builder us
227227
}
228228
if (changed) {
229229
List<Attribute> attrs = builder.build().stream().toList();
230-
if (false == attrs.isEmpty()) {
231-
p = new Fork(fork.source(), fork.children(), attrs);
232-
}
230+
p = new Fork(fork.source(), fork.children(), attrs);
233231
}
234232
return p;
235233
}

0 commit comments

Comments
 (0)