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

Fix inferring number of rows per chunk #327

Merged
merged 3 commits into from
Jan 26, 2024
Merged

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Jan 25, 2024

We use the _rows_per_chunk attribute to determine the number of rows that are included in each Parquet chunk sent to the frontend. This is a layer-level construct because we need to ensure the main table and all accessors have exactly the same chunking, because each chunk is rendered independently as a separate deck.gl layer

We previously had issues where the number of rows per chunk was either not the same across all data objects within a layer, or alternatively a few cases (as with the ArcLayer) where we were accidentally initializing the number of rows per chunk to be 0, which let to an infinite loop in table.to_batches(max_chunksize=0).

@kylebarron kylebarron merged commit 7ab2d93 into main Jan 26, 2024
5 checks passed
@kylebarron kylebarron deleted the kyle/fix-rows-per-chunk branch January 26, 2024 16:07
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.

None yet

1 participant