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

Implement metrics for shuffle read and write #676

Merged
merged 1 commit into from
Jul 5, 2021

Conversation

andygrove
Copy link
Member

Which issue does this PR close?

Closes #675 .

Rationale for this change

What changes are included in this PR?

More metrics.

Are there any user-facing changes?

More metrics in query plan.

@@ -33,6 +33,7 @@ simd = ["datafusion/simd"]
ahash = "0.7"
async-trait = "0.1.36"
futures = "0.3"
hashbrown = "0.11"
Copy link
Member

@houqp houqp Jul 4, 2021

Choose a reason for hiding this comment

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

From the official readme:

Since Rust 1.36, this is now the HashMap implementation for the Rust standard library. However you may still want to use this crate instead since it works in environments without std, such as embedded systems and kernels.

Are we introducing it because we are expecting to use ballista in embedded systems?

Copy link
Member Author

Choose a reason for hiding this comment

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

It looks like the dependency was added to DataFusion for a performance optimization in ec06207 and when the metrics method was added in DataFusion is used this hashmap as well, but perhaps we should have had it use the std hashmap instead?

@Dandandan what do you think?

Copy link
Member

Choose a reason for hiding this comment

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

Filed #677 as a follow up so we don't block the merge of this PR. I am curious whether the std hashmap also uses ahash as the default hasher.

Copy link
Contributor

Choose a reason for hiding this comment

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

Added some comments on the ticket.

@Dandandan Dandandan merged commit 58da159 into apache:master Jul 5, 2021
@houqp houqp added the enhancement New feature or request label Jul 29, 2021
@andygrove andygrove deleted the shuffle-metrics branch February 6, 2022 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ballista: Implement metrics for shuffle operations
3 participants