Skip to content

GH-46207: [C++] Rename arrow::util::StringBuilder and move to internal namespace #46813

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Ziy1-Tan
Copy link
Contributor

@Ziy1-Tan Ziy1-Tan commented Jun 14, 2025

Rationale for this change

  • Move and Rename function arrow::util::StringBuilder to internal namespace to avoid confusion with class arrow::StringBuilder

What changes are included in this PR?

  • Move arrow::util::StringBuilder to arrow::internal::StringBuilder
  • Rename arrow::internal::StringBuilder to arrow::internal::JoinToString
  • Rename arrow/util/string_builder.{h|cc} to arrow/util/string_util_internal.{h|cc}

Are these changes tested?

Yes.

Are there any user-facing changes?

No. they are used internally.

Copy link
Member

@raulcd raulcd left a comment

Choose a reason for hiding this comment

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

Thanks for tackling the work.
Part of the current problem on CI is with calling the file *_internal.h . The header file won't be installed and this is used on some of the bindings which requires it. We can move the namespace to arrow::internal but keep installing the header file, probably naming the files string_util.cc and string_util.h?

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting review Awaiting review labels Jun 16, 2025
@Ziy1-Tan
Copy link
Contributor Author

Thanks for tackling the work. Part of the current problem on CI is with calling the file *_internal.h . The header file won't be installed and this is used on some of the bindings which requires it. We can move the namespace to arrow::internal but keep installing the header file, probably naming the files string_util.cc and string_util.h?

Thank you for your review. Let me take a look.

@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Jun 16, 2025
Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

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

Thanks for doing this. Just one suggestion, otherwise LGTM.


namespace internal {
namespace detail {
Copy link
Member

Choose a reason for hiding this comment

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

The detail namespace is now superfluous given there's already an enclosing internal namespace.

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