-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce large dictionary mode in SliceDictionarySelectiveReader
Previously we always allocate a dictionary for every rowgroup. When these dictionaries are humongous, the allocations could cause reliability and performance issues. This commit materializes the dictionaries if they are too large. Instead of outputting a DictionaryBlock, it will output a plain VariableWidthBlock if the dictionaries size is above certain threshold. The experiment on user reported query shows over 10x reduction in allocations and over 2x CPU reduction in scan.
- Loading branch information
1 parent
0006741
commit 219c7d7
Showing
2 changed files
with
70 additions
and
24 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