Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: RepartitionExec metrics #10025

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Conversation

crepererum
Copy link
Contributor

Which issue does this PR close?

Fixes #10015.

Rationale for this change

RepartitionExec is somewhat special. While most execs operate on "input partition = output partition", RepartitionExec drives all of its work using input-bound tasks. The metrics "fetch time" and "repartition time" therefore have to be accounted for the input partition, not for the output partition. The only metric that has an input & output partition label is the "send time".

What changes are included in this PR?

Metrics fixed.

Are these changes tested?

-

Are there any user-facing changes?

Metrics make sense now.

`RepartitionExec` is somewhat special. While most execs operate on
"input partition = output partition", `RepartitionExec` drives all of
its work using input-bound tasks. The metrics "fetch time" and
"repartition time" therefore have to be accounted for the input
partition, not for the output partition. The only metric that has an
input & output partition label is the "send time".

Fixes apache#10015.
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me. Thank you @crepererum

@alamb alamb merged commit a13c37d into apache:main Apr 10, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RepartitionExec incorrectly reports metrics for all partitions against a single partition
2 participants