Skip to content

GH-51144: [C++] Incorrect Logic for AdaptiveUIntBuilder::AppendValues - #51146

Merged
pitrou merged 1 commit into
apache:mainfrom
andishgar:AdaptiveBuilder_Correction
Sep 3, 2026
Merged

pitrou merged 1 commit into
apache:mainfrom
andishgar:AdaptiveBuilder_Correction

Conversation

@andishgar

@andishgar andishgar commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

arrow::AdaptiveUIntBuilder::AppendValues creates incorrect results when combined with arrow::AdaptiveUIntBuilder::Append.

What changes are included in this PR?

Correct the logic of arrow::AdaptiveUIntBuilder::AppendValues and add the relevant unit test.

Are these changes tested?

Yes. I ran the relevant unit test.

Are there any user-facing changes?

No.

This PR contains a "Critical Fix". (b) A bug that caused incorrect or invalid data to be produced.

Correct the logic of AppendValues
@andishgar
andishgar requested a review from pitrou as a code owner September 3, 2026 00:40
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

⚠️ GitHub issue #51144 has been automatically assigned in GitHub to PR creator.

@github-actions github-actions Bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Sep 3, 2026
@pitrou pitrou added Critical Fix Bugfixes for security vulnerabilities, crashes, or invalid data. backport-candidate labels Sep 3, 2026
@pitrou

pitrou commented Sep 3, 2026

Copy link
Copy Markdown
Member

Thanks for finding and fixing this @andishgar !

@pitrou
pitrou merged commit 1b0b16a into apache:main Sep 3, 2026
91 of 112 checks passed
@pitrou pitrou removed the awaiting committer review Awaiting committer review label Sep 3, 2026
@andishgar
andishgar deleted the AdaptiveBuilder_Correction branch September 3, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-candidate Component: C++ Critical Fix Bugfixes for security vulnerabilities, crashes, or invalid data.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants