Skip to content

GH-50010: [C++][Parquet] Fix undefined behavior in TypedColumnWriterImpl::UpdateLevelHistogram#50011

Merged
wgtmac merged 1 commit into
apache:mainfrom
HuaHuaY:fix_issue_50010
May 26, 2026
Merged

GH-50010: [C++][Parquet] Fix undefined behavior in TypedColumnWriterImpl::UpdateLevelHistogram#50011
wgtmac merged 1 commit into
apache:mainfrom
HuaHuaY:fix_issue_50010

Conversation

@HuaHuaY
Copy link
Copy Markdown
Contributor

@HuaHuaY HuaHuaY commented May 21, 2026

Rationale for this change

Fix an undefined behavior.

What changes are included in this PR?

It fixes the undefined behavior by delaying the span construction.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@HuaHuaY HuaHuaY requested a review from wgtmac as a code owner May 21, 2026 11:30
@github-actions github-actions Bot added the awaiting review Awaiting review label May 21, 2026
@github-actions
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Member

@wgtmac wgtmac left a comment

Choose a reason for hiding this comment

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

Make sense. +1

@github-actions github-actions Bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels May 21, 2026
@HuaHuaY
Copy link
Copy Markdown
Contributor Author

HuaHuaY commented May 21, 2026

@pitrou Please take a look.

@wgtmac
Copy link
Copy Markdown
Member

wgtmac commented May 25, 2026

This is a trivial fix. Will merge it tomorrow if no objection.

@wgtmac wgtmac merged commit 3589dc2 into apache:main May 26, 2026
52 checks passed
@wgtmac wgtmac removed the awaiting committer review Awaiting committer review label May 26, 2026
@HuaHuaY HuaHuaY deleted the fix_issue_50010 branch May 26, 2026 02:37
@conbench-apache-arrow
Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 3589dc2.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 2 possible false positives for unstable benchmarks that are known to sometimes produce them.

Mottl pushed a commit to Mottl/arrow that referenced this pull request May 26, 2026
…riterImpl::UpdateLevelHistogram (apache#50011)

### Rationale for this change

Fix an undefined behavior.

### What changes are included in this PR?

It fixes the undefined behavior by delaying the span construction.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.

* GitHub Issue: apache#50010

Authored-by: Zehua Zou <zehuazou2000@gmail.com>
Signed-off-by: Gang Wu <ustcwg@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants