apache / apache/datafusion

Add aggregate specific metrics

Open
#23,570 0 comments 0 reactions 0 assignees 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?

Yes, running a query that takes a long time in the aggregator, you don't know what is taking the time there, which expression for example or what inside the expression

in our case we have aggregate with 2 aggregate expression that are the same (just on different column), in that aggregate expression impl there are multiple phases that can contribute to the timing

### Describe the solution you'd like

having metrics per aggregate expression with the aggregate specific metric that can be declared will make it easier for visibility

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the aggregator implementation and its existing timing or metrics instrumentation. Identify the phases within aggregate expression execution and determine how metrics could be exposed per expression; done means users can distinguish timing contributions from separate aggregate expressions and their phases.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sql
Domain
data-engineering, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.