Skip to content

[C++][Parquet] Avoid scanning definition levels twice in spaced reads of repeated fields #55849

Done

Description

@HuaHuaY

Describe the enhancement requested

When reading a repeated field, DelimitRecords() scans the definition levels to count non-null values. On the spaced read path, ReadFromDefLevels() then visits the same levels to build the validity bitmap. It returns both the number of leaf slots and the number of nulls, so their difference already gives the non-null count.

The spaced read path could use that result directly and avoid the separate counting pass. Dense reads and skips would still count non-null values to determine how many physical values to read or skip.

Component(s)

C++, Parquet

Activity

  1. self-assigned this
    on Nov 30, 2026
  2. added this to the 27.0.0 milestone on Dec 1, 2026
  3. wgtmac commented on Dec 1, 2026

    @wgtmac
    Member

    Issue resolved by pull request 55850
    #55850

  4. added a commit that references this issue on Dec 1, 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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions