Skip to content

[C++][Parquet] Optimize DeltaLengthByteArrayEncoder::PutBinaryArray with batched length encoding and bulk copy #55487

Open

Description

@ryanvickr

Describe the enhancement requested

DeltaLengthByteArrayEncoder::PutBinaryArray in cpp/src/parquet/encoder.cc currently encodes Arrow binary/string lengths one element at a time (length_encoder_.Put({len}, 1)) and appends payloads to sink_ without pre-reserving capacity, unlike Put(const ByteArray*, int) which batches lengths in 256-value chunks and pre-reserves sink_.

For non-null offset-based Binary/String/Large* arrays, all payload bytes are already contiguous in [offsets[0], offsets[length]) and can be bulk-copied in a single append after validating offsets and lengths.

(The memory pool forwarding and zero-length UnsafeAppend bug fixes originally filed here were split out into #55685 / #55686.)

Component(s)

C++, Parquet

Activity

  1. added a commit that references this issue on Nov 11, 2026
  2. added a commit that references this issue on Nov 20, 2026
  3. changed the title [-][C++][Parquet] Fix DeltaLengthByteArrayEncoder memory pool tracking, Arrow array batching, and zero-length safety[/-] [+][C++][Parquet] Optimize DeltaLengthByteArrayEncoder::PutBinaryArray with batched length encoding and bulk copy[/+] on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions