Skip to content

GH-55258: [C++] Move Azure and its SDK to its own libarrow_azure.so - #55299

Merged
kou merged 9 commits into
apache:mainfrom
raulcd:GH-55258
Nov 24, 2026
Merged

kou merged 9 commits into
apache:mainfrom
raulcd:GH-55258

Conversation

@raulcd

@raulcd raulcd commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Rationale for this change

Trying to reduce the size of libarrow.so and remove Azure SDK on some builds. Allow for users to plug and play based on requirements and divide our functionality into cleaner modules. Same as we have done for GCS and AWS S3.

What changes are included in this PR?

Unconditionally build Azure file system and the Azure SDK into a different module libarrow_azure.so outside of libarrow.so.
Update bindings to link against the new libarrow_azure.so library.
Update the Linux Package jobs to have the new module into a different package.

Are these changes tested?

Yes via CI

Are there any user-facing changes?

Yes, users will need to either link against libarrow_azure.so or register using LoadFileSystemFactories

Was AI used for this PR?

In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

@raulcd

raulcd commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit wheel-cp315

@github-actions

This comment was marked as outdated.

@raulcd

raulcd commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit -g r

@github-actions

This comment was marked as outdated.

@raulcd

raulcd commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit -g r

@raulcd

raulcd commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit wheel-cp314

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@raulcd

raulcd commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

This should be ready for review now but I am going to wait for the following PR to land which fixes the GCS static builds.

Once the above is merged I'll rebase and validate the debian 13 jobs for the static checks for Azure too.
cc @tadeja @kou

@raulcd

raulcd commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit test-debian-13-cpp-amd64 test-ubuntu-22.04-cpp-bundled test-ubuntu-24.04-cpp-gcc-13-bundled

@github-actions

Copy link
Copy Markdown

Revision: b494674

Submitted crossbow builds: ursacomputing/crossbow @ actions-3dd5f9292e

Task Status
test-debian-13-cpp-amd64 GitHub Actions
test-ubuntu-22.04-cpp-bundled GitHub Actions
test-ubuntu-24.04-cpp-gcc-13-bundled GitHub Actions

@raulcd

raulcd commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit -g r

@raulcd

raulcd commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit wheel-cp315

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@raulcd

raulcd commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

@tadeja this doesn't seem to fail our static builds, the CI failures are unrelated (failing on main and being tackled on other issues). This should be ready for review now.

@raulcd
raulcd marked this pull request as ready for review November 16, 2026 11:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread cpp/src/arrow/CMakeLists.txt Resolved
Comment thread cpp/src/arrow/filesystem/azurefs.h Resolved
LibXml2::LibXml2)
endif()
endif()
set(ARROW_AZURE_LIB_SRCS filesystem/azurefs_module.cc filesystem/azurefs.cc)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Same as GCS. GCS is tracked in #55284 , which covers GCS. @kou, should I create one for Azure for C GLib?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If you do it, it's helpful. Or I can create it later. :-)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copilot AI balanced review requested due to automatic review settings November 17, 2026 10:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings November 17, 2026 12:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@raulcd

raulcd commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit test-debian-13-cpp-amd64 test-ubuntu-22.04-cpp-bundled test-ubuntu-24.04-cpp-gcc-13-bundled

@github-actions

Copy link
Copy Markdown

Revision: 79a44fd

Submitted crossbow builds: ursacomputing/crossbow @ actions-edee07b33c

Task Status
test-debian-13-cpp-amd64 GitHub Actions
test-ubuntu-22.04-cpp-bundled GitHub Actions
test-ubuntu-24.04-cpp-gcc-13-bundled GitHub Actions

@raulcd

raulcd commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit wheel-cp314

@raulcd

raulcd commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit -g r

@github-actions

Copy link
Copy Markdown

Revision: 79a44fd

Submitted crossbow builds: ursacomputing/crossbow @ actions-9b7adb7aac

Task Status
wheel-macos-monterey-cp314-cp314-amd64 GitHub Actions
wheel-macos-monterey-cp314-cp314-arm64 GitHub Actions
wheel-macos-monterey-cp314-cp314t-amd64 GitHub Actions
wheel-macos-monterey-cp314-cp314t-arm64 GitHub Actions
wheel-manylinux-2-28-cp314-cp314-amd64 GitHub Actions
wheel-manylinux-2-28-cp314-cp314-arm64 GitHub Actions
wheel-manylinux-2-28-cp314-cp314t-amd64 GitHub Actions
wheel-manylinux-2-28-cp314-cp314t-arm64 GitHub Actions
wheel-musllinux-1-2-cp314-cp314-amd64 GitHub Actions
wheel-musllinux-1-2-cp314-cp314-arm64 GitHub Actions
wheel-musllinux-1-2-cp314-cp314t-amd64 GitHub Actions
wheel-musllinux-1-2-cp314-cp314t-arm64 GitHub Actions
wheel-windows-cp314-cp314-amd64 GitHub Actions
wheel-windows-cp314-cp314t-amd64 GitHub Actions

@github-actions

Copy link
Copy Markdown

Revision: 79a44fd

Submitted crossbow builds: ursacomputing/crossbow @ actions-48fca4bd2c

Task Status
r-binary-packages GitHub Actions
r-recheck-most GitHub Actions
test-r-alpine-linux-cran GitHub Actions
test-r-arrow-backwards-compatibility GitHub Actions
test-r-depsource-system GitHub Actions
test-r-dev-duckdb GitHub Actions
test-r-devdocs GitHub Actions
test-r-extra-packages GitHub Actions
test-r-fedora-clang GitHub Actions
test-r-gcc-11 GitHub Actions
test-r-gcc-12 GitHub Actions
test-r-install-local GitHub Actions
test-r-install-local-minsizerel GitHub Actions
test-r-linux-as-cran GitHub Actions
test-r-linux-rchk GitHub Actions
test-r-linux-sanitizers GitHub Actions
test-r-linux-valgrind GitHub Actions
test-r-m1-san GitHub Actions
test-r-macos-as-cran GitHub Actions
test-r-offline-maximal GitHub Actions
test-r-offline-minimal GitHub Actions
test-r-ubuntu-22.04 GitHub Actions
test-r-versions GitHub Actions
test-r-wasm GitHub Actions

@raulcd

raulcd commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

Can we add ARROW_EXAMPLE_AZURE_STATIC_CHECK to https://github.com/apache/arrow/blob/main/cpp/examples/minimal_build/CMakeLists.txt ?

Thanks for the comment @kou ! I did find an issue on Windows with ARROW_EXAMPLE_AZURE_STATIC_CHECK and decided to create ARROW_AZURE_BUNDLED_STATIC_LIBS as we did for GCS to fix it and be consistent. The last 3 commits show those changes.

CI failures are unrelated.

@tadeja tadeja left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall LGTM :)

Optional additional docs like this simplified suggestion from a 🤖

diff --git a/docs/source/cpp/build_system.rst b/docs/source/cpp/build_system.rst
@@ -147,6 +147,12 @@ For example, to use the ``ArrowCompute`` package:
 .. seealso::
    A Docker-based :doc:`minimal build example <examples/cmake_minimal_build>`.
 
+If you access S3, GCS or Azure only through URIs, linking the filesystem library
+may not register its URI schemes. For shared builds, load the library with
+:func:`~arrow::fs::LoadFileSystemFactories` before resolving a URI.
+For static builds, reference a filesystem-specific symbol or link the whole
+filesystem archive.
+
 pkg-config

Comment thread r/configure Resolved
@raulcd

raulcd commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Thanks for the review @tadeja!
@kou I've tackled the previous comments. I think this is ready as it's really similar to the work done for S3 and GCS. If no more concerns I'll merge in a couple days and I will switch to work on the wheels split.

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

@kou
kou merged commit e0f6a7b into apache:main Nov 24, 2026
139 of 145 checks passed
@raulcd
raulcd deleted the GH-55258 branch November 24, 2026 06:51
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.

4 participants