Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions datafusion/physical-plan/src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,10 +686,12 @@ struct FilterExecStream {

/// The metrics for `FilterExec`
struct FilterExecMetrics {
// Common metrics for most operators
/// Common metrics for most operators
baseline_metrics: BaselineMetrics,
// Selectivity of the filter, calculated as output_rows / input_rows
/// Selectivity of the filter, calculated as output_rows / input_rows
selectivity: RatioMetrics,
// Remember to update `docs/source/user-guide/metrics.md` when adding new metrics,
// or modifying metrics comments
}

impl FilterExecMetrics {
Expand Down
10 changes: 9 additions & 1 deletion docs/source/user-guide/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,12 @@ DataFusion operators expose runtime metrics so you can understand where time is

## Operator-specific Metrics

TODO
### FilterExec

| Metric | Description |
| ----------- | ----------------------------------------------------------------- |
| selectivity | Selectivity of the filter, calculated as output_rows / input_rows |

## TODO

Add metrics for the remaining operators