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

feat: Pre-Sort Pyarrow Tables to write smaller Parquet files #167

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

rymarczy
Copy link
Collaborator

Pre-Sorting table data, before writing to Parquet, allows Parquet compression algos to take advantage of low cardinality data.

The following drop in file sizes has been observed:
Vehicle Positions (1 hour dataset)
63 MB → 4.9 MB

Trip Updates ( 1 hour dataset)
132MB → 26.5 MB

Asana Task: https://app.asana.com/0/1204931901750675/1205499565957353

Copy link
Contributor

@mzappitello mzappitello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rymarczy rymarczy merged commit 00001fb into main Sep 14, 2023
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants