Repository navigation
GH-55258: [C++] Move Azure and its SDK to its own libarrow_azure.so - #55299
Conversation
|
@github-actions crossbow submit wheel-cp315 |
This comment was marked as outdated.
This comment was marked as outdated.
|
@github-actions crossbow submit -g r |
This comment was marked as outdated.
This comment was marked as outdated.
|
@github-actions crossbow submit -g r |
|
@github-actions crossbow submit wheel-cp314 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@github-actions crossbow submit test-debian-13-cpp-amd64 test-ubuntu-22.04-cpp-bundled test-ubuntu-24.04-cpp-gcc-13-bundled |
|
Revision: b494674 Submitted crossbow builds: ursacomputing/crossbow @ actions-3dd5f9292e
|
|
@github-actions crossbow submit -g r |
|
@github-actions crossbow submit wheel-cp315 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@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. |
There was a problem hiding this comment.
🟡 Changes recommended
Incorrect Azure export macros break Windows shared Meson builds and static pkg-config linking, while missing module loading regresses C GLib support for abfs/abfss URIs.
3 open issues
5 resolved since last review
These RPM subpackages (and their%fileslists) appear unconditional and hard-require both shared… With the Azure URI handling removed fromfilesystem.cc,abfs/abfssnow relies entirely on… The non-pkg-config fallback (PKG_LIBS_FEATURES_WITHOUT_PC) adds-larrow_azurebut doesn’t add… The bundling step depends onARROW_AZURE_SHARED_LIB/ARROW_AZURE_IMPORT_LIBvariables being… On the non-MSVC Windows branch,#pragma GCC diagnostic ignored \"-Wattributes\"is not paired…
Review effort: Balanced
| LibXml2::LibXml2) | ||
| endif() | ||
| endif() | ||
| set(ARROW_AZURE_LIB_SRCS filesystem/azurefs_module.cc filesystem/azurefs.cc) |
There was a problem hiding this comment.
If you do it, it's helpful. Or I can create it later. :-)
There was a problem hiding this comment.
|
@github-actions crossbow submit test-debian-13-cpp-amd64 test-ubuntu-22.04-cpp-bundled test-ubuntu-24.04-cpp-gcc-13-bundled |
|
Revision: 79a44fd Submitted crossbow builds: ursacomputing/crossbow @ actions-edee07b33c
|
|
@github-actions crossbow submit wheel-cp314 |
|
@github-actions crossbow submit -g r |
|
Revision: 79a44fd Submitted crossbow builds: ursacomputing/crossbow @ actions-9b7adb7aac |
|
Revision: 79a44fd Submitted crossbow builds: ursacomputing/crossbow @ actions-48fca4bd2c |
Thanks for the comment @kou ! I did find an issue on Windows with CI failures are unrelated. |
tadeja
left a comment
There was a problem hiding this comment.
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

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:
Reviewed before submission by: