Skip to content

[C++][Compute][Parquet] Avoid redundant metadata copies- #55647 #55733

Closed

Description

@mapleFU

Describe the enhancement requested

See #55647

I opened a small cleanup PR yesterday while getting familiar with the Arrow codebase. While continuing to read through the code, I noticed that some of the same patterns addressed in that PR were also present in other related code paths.

The earlier PR fixed these patterns in one place, but similar cases remained elsewhere. This PR applies the same small improvements to those remaining occurrences.

I also found that the Parquet metadata builder copied the complete row-group metadata vector when finalizing file metadata. Since the builder is finalizing its state at that point, the row-group metadata can be moved into the final Thrift structure instead. This avoids an unnecessary allocation and copy, particularly for files with many row groups.

Component(s)

C++, Parquet

Activity

  1. added a commit that references this issue on Nov 23, 2026
  2. added this to the 27.0.0 milestone on Nov 23, 2026
  3. mapleFU commented on Nov 23, 2026

    @mapleFU
    MemberAuthor

    Issue resolved by pull request 55647
    #55647

  4. tadeja commented on Nov 23, 2026

    @tadeja
    Member

    @Sumdiboii could you post something here, so the issue can be assigned to you?

  5. Sumdiboii commented on Nov 23, 2026

    @Sumdiboii
    Contributor

    Oh, sure!

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