Repository navigation
Conversation
…rquetWriter's row groups ColumnWriteStoreBase's BloomFilterWriteStore constructor, used by every ParquetWriter, did not cap the first page size check at the page row count limit. The vectored IO tests' filter was fitted to the old page layout.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
With a page row count limit below
parquet.page.size.row.check.min(100 by default), the first page of every row group written byParquetWriterholds 100 rows instead of the limit.What changes are included in this PR?
ColumnWriteStoreBase's constructor taking aBloomFilterWriteStore, which everyParquetWriteruses, now starts the page size checks atmin(minRowCountForPageSizeCheck, pageRowCountLimit), like the other two constructors have since PARQUET-1414.Are these changes tested?
Yes:
TestParquetWriter#testPageRowCountLimitAppliesToFirstPagewrites 100 rows with a limit of 10 and expects ten 10-row pages. Without the fix it gets a single 100-row page.TestParquetFileReaderVectoredIO's page filter and one maximum allocation were fitted to the old 100-row first page. They are adjusted so the tests still read two disjoint page spans and still split adjacent ranges at the maximum allocation.Are there any user-facing changes?
Writers with a page row count limit below 100 now limit the first page of each row group as configured.
Closes #3991
🤖 Generated with Claude Code