Skip to content

Commit 1a8dadc

Browse files
committed
Keep attribute
1 parent 0f0f0ef commit 1a8dadc

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session/EsqlSession.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ static PreAnalysisResult fieldNames(LogicalPlan parsed, Set<String> enrichPolicy
626626
p.forEachExpression(UnresolvedNamePattern.class, up -> {
627627
var ua = new UnresolvedAttribute(up.source(), up.name());
628628
referencesBuilder.add(ua);
629-
if (p instanceof Keep) {
629+
if (p instanceof Keep || p instanceof Drop) {
630630
keepCommandRefsBuilder.add(ua);
631631
}
632632
});

0 commit comments

Comments
 (0)