Skip to content
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

Enable dictionary encoding by default for enum ParquetFields #827

Open
clairemcginty opened this issue Sep 5, 2023 · 0 comments
Open

Enable dictionary encoding by default for enum ParquetFields #827

clairemcginty opened this issue Sep 5, 2023 · 0 comments

Comments

@clairemcginty
Copy link
Contributor

Per the documentation:

The dictionary encoding builds a dictionary of values encountered in a given column. The dictionary will be stored in a dictionary page per column chunk. The values are stored as integers using the RLE/Bit-Packing Hybrid encoding. If the dictionary grows too big, whether in size or number of distinct values, the encoding will fall back to the plain encoding. The dictionary page is written first, before the data pages of the column chunk.

This seems like a good fit for Parquet enum types, which are written as strings under the hood. ParquetWriter.Builder has a .withDictionaryEncoding(String columnPath, boolean enableDictionary) that we could invoke for all enum ParquetFields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant