apache / apache/datafusion

Add MetricValue that returns the max during aggregation

Open
#11,754 2 comments 0 reactions 1 assignee Claimed by @jeffreyssmith2nd View on GitHub
enhancement
Dominant language
Rust
Stars
9.3k
Forks
2.4k
Avg merge
3d 7h
Merged PRs (30d)
344

Description

### Is your feature request related to a problem or challenge?

We have a scenario where we are performing multiple operations in parallel and are only interested in the one that takes the longest. Currently, `MetricValue::Time` is always summed on aggregation.

### Describe the solution you'd like

A new type, `MetricValue::MaxTime`, is implemented that functions the same as `MetricValue::Time` except on aggregation, it returns the max of the two times rather than the sum.

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.