Skip to content

feat(arrow/array): add Resize method to RecordBuilder#805

Open
oakad wants to merge 1 commit intoapache:mainfrom
oakad:gh-796-helper-method-for-recordbuilder
Open

feat(arrow/array): add Resize method to RecordBuilder#805
oakad wants to merge 1 commit intoapache:mainfrom
oakad:gh-796-helper-method-for-recordbuilder

Conversation

@oakad
Copy link
Copy Markdown

@oakad oakad commented May 8, 2026

Presently added Resize method addresses two,
relatively common needs:

  1. All fields within the Builder may need to be resized to the same length.
  2. As part of error recovery process, fields may need to be truncated to the length of the shortest one, effectively discarding incomplete "rows".

Fixes #796

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Presently added Resize method addresses two,
relatively common needs:

1. All fields within the Builder may need to be resized to the same
length.
2. As part of error recovery process, fields may need to be truncated
to the length of the shortest one, effectively discarding incomplete
"rows".

Fixes apache#796
@oakad oakad requested a review from zeroshade as a code owner May 8, 2026 08:58
Copy link
Copy Markdown
Member

@zeroshade zeroshade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks fine, but needs unit tests and to reference the relevant issue in the description.

@zeroshade zeroshade changed the title RecordBuilder: add Resize method feat(arrow/array): add Resize method to RecordBuilder May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helper method for RecordBuilder to drop last, incomplete "rows"

2 participants