Skip to content

Commit 201014a

Browse files
committed
actually collect the metrics
1 parent cb9ebe7 commit 201014a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/IgnoreNullMetrics.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ private Set<Attribute> collectMetrics(LogicalPlan logicalPlan) {
7979
logicalPlan.forEachDown(p -> {
8080
if (p instanceof UnaryPlan up) {
8181
for (Attribute attr : up.inputSet()) {
82-
// Check if it's a metric. I think I need https://github.com/elastic/elasticsearch/pull/131463 to do that
82+
if (attr.isMetric()) {
83+
metrics.add(attr);
84+
}
8385
}
8486
}
8587
});

0 commit comments

Comments
 (0)