Skip to content

Commit

Permalink
[VL] Fix corrupted metrics data in the filter transformer (#4180)
Browse files Browse the repository at this point in the history
  • Loading branch information
liujiayi771 authored Dec 26, 2023
1 parent e7040cd commit 6335ad0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cpp/velox/compute/WholeStageResultIterator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,13 @@ void WholeStageResultIterator::collectMetrics() {
if (planStats.find(nodeId) == planStats.end()) {
// Special handing for Filter over Project case. Filter metrics are
// omitted.
metrics_->get(Metrics::kOutputRows)[metricIndex] = 0;
metrics_->get(Metrics::kOutputVectors)[metricIndex] = 0;
metrics_->get(Metrics::kOutputBytes)[metricIndex] = 0;
metrics_->get(Metrics::kCpuCount)[metricIndex] = 0;
metrics_->get(Metrics::kWallNanos)[metricIndex] = 0;
metrics_->get(Metrics::kPeakMemoryBytes)[metricIndex] = 0;
metrics_->get(Metrics::kNumMemoryAllocations)[metricIndex] = 0;
metricIndex += 1;
continue;
}
Expand Down

0 comments on commit 6335ad0

Please sign in to comment.