Skip to content

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.

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
unkloud pushed a commit to unkloud/datafusion that referenced this pull request Mar 23, 2025
H0TB0X420 pushed a commit to H0TB0X420/datafusion that referenced this pull request Oct 7, 2025
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