-
Notifications
You must be signed in to change notification settings - Fork 917
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Selectively use dictionary encoding in Parquet writer (#12211)
With the addition of Zstandard compression, sometimes it is not desirable to perform dictionary encoding. This PR adds a `dictionary_policy` setting to the parquet writer which allows either completely disabling dictionary encoding, setting a `max_dictionary_size` (like the [parquet-mr](https://github.com/apache/parquet-mr/blob/master/parquet-hadoop/README.md) `parquet.dictionary.page.size` parameter), or using the default behavior before this PR (i.e. always use dictionaries). This PR also adds a `max_page_fragment_size` setting as a stop gap until an adaptive fragment size calculation can be implemented. Continuation of #12141. Authors: - Ed Seidl (https://github.com/etseidl) - Vukasin Milovanovic (https://github.com/vuule) Approvers: - Mike Wilson (https://github.com/hyperbolic2346) - Vukasin Milovanovic (https://github.com/vuule) URL: #12211
- Loading branch information
Showing
8 changed files
with
487 additions
and
36 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
Oops, something went wrong.