-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Introduce HashMap and HashSet type aliases #13236
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
logical-expr
Logical plan and expressions
physical-expr
Physical Expressions
optimizer
Optimizer rules
core
Core DataFusion crate
substrait
common
Related to common crate
execution
Related to the execution crate
functions
labels
Nov 3, 2024
drauschenbach
force-pushed
the
hashmap-type-alias
branch
from
November 3, 2024 17:29
6e1c61c
to
2a37800
Compare
Dandandan
reviewed
Nov 3, 2024
collections::{HashMap, HashSet}, | ||
sync::Arc, | ||
}; | ||
use std::{collections::HashSet, sync::Arc}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you could do the same to HashSet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
drauschenbach
changed the title
Introduce a HashMap type alias
Introduce HashMap and HashSet type aliases
Nov 3, 2024
Dandandan
approved these changes
Nov 4, 2024
Dandandan
approved these changes
Nov 4, 2024
andygrove
approved these changes
Nov 5, 2024
Thank you @drauschenbach |
findepi
pushed a commit
to sdf-labs/arrow-datafusion
that referenced
this pull request
Nov 25, 2024
* Unite all references to hashbrown::HashMap by using a common type definition * Replace some use of std::collections::HashMap with hashbrown::HashMap * Replace some use of std::collections::HashMap with hashbrown::HashMap * Replace some use of std::collections::HashMap with hashbrown::HashMap * Unite all references to hashbrown::HashSet by using a common type definition * Replace some use of std::collections::HashSet with hashbrown::HashSet
findepi
pushed a commit
to sdf-labs/arrow-datafusion
that referenced
this pull request
Nov 26, 2024
* Unite all references to hashbrown::HashMap by using a common type definition * Replace some use of std::collections::HashMap with hashbrown::HashMap * Replace some use of std::collections::HashMap with hashbrown::HashMap * Replace some use of std::collections::HashMap with hashbrown::HashMap * Unite all references to hashbrown::HashSet by using a common type definition * Replace some use of std::collections::HashSet with hashbrown::HashSet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
common
Related to common crate
core
Core DataFusion crate
execution
Related to the execution crate
functions
logical-expr
Logical plan and expressions
optimizer
Optimizer rules
physical-expr
Physical Expressions
sql
SQL Planner
substrait
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes #677.
Rationale for this change
Centralize the recommended default implementation of
HashMap
andHashSet
.What changes are included in this PR?
hashbrown::HashMap
are now unified under thedatafusion_common::HashMap
type alias.hashbrown::HashSet
are now unified under thedatafusion_common::HashSet
type alias.std::collections::HashMap
andstd::collections::HashSet
are replaced with the type alias, where public contracts were not involved, and where tests did not break.Are these changes tested?
Yes, on an Apple M1.
Are there any user-facing changes?
Hopefully not. All tests and public contracts are left untouched, where
std::collections::
types are the idiomatic platform default.