Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-45301: [C++] Change PrimitiveArray ctor to protected #45444

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

mapleFU
Copy link
Member

@mapleFU mapleFU commented Feb 6, 2025

Rationale for this change

This patch handles the case in GH-45301, changing the ctor for PrimitiveArray to private.

What changes are included in this PR?

change the ctor for PrimitiveArray to private.

Are these changes tested?

Yes

Are there any user-facing changes?

This PR makes protected a constructor that was public. Calling this constructor outside of subclasses resulted in incorrect code.

Copy link

github-actions bot commented Feb 6, 2025

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

@mapleFU mapleFU changed the title GH-45301: [C++] DNM: Change PrimitiveArray ctor to protected GH-45301: [C++] Change PrimitiveArray ctor to protected Feb 6, 2025
@mapleFU
Copy link
Member Author

mapleFU commented Feb 6, 2025

@pitrou @sjperkins I've trying to change ctor to protected, seems that this also works

@sjperkins
Copy link
Contributor

Minor suggestion: a static Make factory method that calls MakeArray might be useful, but I wouldn't consider this important at all.

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Feb 10, 2025
@mapleFU
Copy link
Member Author

mapleFU commented Feb 10, 2025

Minor suggestion: a static Make factory method that calls MakeArray might be useful, but I wouldn't consider this important at all.

From my aspects, MakeArray already does this, but feel free to re-add this

@sjperkins
Copy link
Contributor

From my aspects, MakeArray already does this, but feel free to re-add this

Agreed, I don't think this should block this PR.

@mapleFU mapleFU merged commit b1e822a into apache:main Feb 11, 2025
40 checks passed
@mapleFU mapleFU removed the awaiting committer review Awaiting committer review label Feb 11, 2025
@mapleFU mapleFU deleted the GH-45301 branch February 11, 2025 17:59
Copy link

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

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.

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.

3 participants