Skip to content

BDX-3329: Add byte targets to buffered Parquet row groups - #172

Draft
bodduv wants to merge 1 commit into
dremio_27.0_26_20from
BDX-3329-row-group-bytes
Draft

bodduv wants to merge 1 commit into
dremio_27.0_26_20from
BDX-3329-row-group-bytes

Conversation

@bodduv

@bodduv bodduv commented Nov 29, 2026 •

Copy link
Copy Markdown

Summary

Add an opt-in buffered byte target for Arrow C++ Parquet row groups. The writer estimates size from its page and encoder counters, with open dictionary-page values counted at their PLAIN width. It retains the hard row limit and checks after complete row slices.

WriteRecordBatch can split a batch across byte-target groups. WriteRecordBatchToRowGroup returns the rows consumed and whether the group was flushed. This lets a caller adjust the target between groups or roll a file before consuming the rest of a batch.

The target is approximate. The default all-batch behavior remains row-count-based. Dremio uses the new boundary result for its buffered sizing policy. BDX-3329

Validation

  • The 5 focused row-group tests and all 363 lower-level writer tests passed locally. The broader reader/writer suite had 819 passes, 8 skips, and 13 cases requiring external Parquet fixtures.
  • The Arrow Java SDK packaging script linked and ran its round-trip smoke test. Dremio passed 278 focused native writer and kernel tests in each feature flag mode using the scratch SDK.
  • The base branch has existing lint and Conda Flight failures. Base lint · Base Conda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant