forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix HashBuild unspilling stuck (facebookincubator#8715)
Summary: Pull Request resolved: facebookincubator#8715 When the input of `HashBuild` is from spilling, they all come from the same partition. That means the spill partition bits are all same for the hashes from these rows. In case the hash table is large, there could be overlap between the hash bits we use to calculate bucket index and the bits for spill partitioning. These bits are fixed for all rows and because they are higher bits, we end up restricting ourselves to a smaller region of the hash table. This results in heavy hash collision and the hash build will take super long time and block driver threads. Fix this by adding a check to make sure that there will be no overlap between the spill partitioning bits and the bits used for bucket indexing, and increase the default spill start partition bit to 48. Reviewed By: oerling Differential Revision: D53589502 fbshipit-source-id: 969fe24f09a04ea3abaa4ff750de4541e438d988
- Loading branch information
1 parent
6a40488
commit 9cf0ef0
Showing
9 changed files
with
90 additions
and
19 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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