Repository navigation
Remove Arrow 22 version pin and use CURL workaround for Arrow 23+ - #8679
Conversation
Arrow 23+ has a CMake configuration issue where the CURL dependency is not properly exported via find_dependency(). This caused build failures when using static libarrow. Instead of pinning to Arrow 22.x, apply the recommended workaround: - Add find_package(CURL) before find_package(Arrow) in CMake - Install libcurl-dev in CI dependencies See: apache/arrow#48885
📝 WalkthroughWalkthroughAdds a quiet pre-emptive CURL lookup to the WITH_PARQUET CMake block to accommodate Arrow 23+ and updates CI/dependency scripts to install curl and libarrow/libparquet via package managers instead of pinning Arrow 22.x. Changes
Sequence Diagram(s)(Skipped — changes are dependency/installation updates and a minor CMake lookup, not a new multi-component control flow requiring visualization.) Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@tools/ci/deps-ubuntu.sh`:
- Around line 48-60: The wget and apt install lines in tools/ci/deps-ubuntu.sh
use unquoted command substitutions which can cause word-splitting (ShellCheck
SC2046); update the two occurrences of wget
https://packages.apache.org/.../apache-arrow-apt-source-latest-$(lsb_release
--codename --short).deb and sudo apt-get install -y -V
./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb to quote
the substitutions (e.g. wrap the entire URL/path in double quotes or quote the
$(...) portion) so the produced URL/path is treated as a single token by wget
and apt-get.
🧹 Nitpick comments (1)
cmake/cmake_findExternalLibs.cmake (1)
166-170: Guard against silent missing CURL when Arrow needs it.
find_package(CURL QUIET)can hide a missing dependency and defer failures to link time. Consider warning when CURL isn’t found so users get a clearer diagnostic (especially for static Arrow builds).♻️ Suggested warning guard
# Workaround for Arrow 23+ CMake configuration issue where CURL dependency # is not properly exported. See: https://github.com/apache/arrow/issues/48885 find_package(CURL QUIET) find_package(Arrow CONFIG REQUIRED) find_package(Parquet CONFIG REQUIRED) + if(NOT TARGET CURL::libcurl) + message(WARNING "CURL not found; Arrow/Parquet builds that require CURL may fail. Install libcurl-dev or set CURL_ROOT.") + endif()
| # Install Apache Arrow | ||
| sudo apt update | ||
| sudo apt-get install -y -V ca-certificates lsb-release wget | ||
| wget https://packages.apache.org/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | ||
| sudo apt update | ||
| sudo apt-get install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | ||
| sudo apt update | ||
| # Install libcurl-dev as a workaround for Arrow CMake config issue | ||
| # See: https://github.com/apache/arrow/issues/48885 | ||
| sudo apt-get install -y --no-install-recommends \ | ||
| libcurl4-openssl-dev \ | ||
| libarrow-dev \ | ||
| libparquet-dev |
There was a problem hiding this comment.
Quote command substitutions in the Arrow APT URL and .deb path.
Shellcheck flags SC2046 here; quoting prevents word splitting and makes the URL/path robust.
✅ Quoting fix
-wget https://packages.apache.org/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
+wget "https://packages.apache.org/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb"
...
-sudo apt-get install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
+sudo apt-get install -y -V "./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb"📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| # Install Apache Arrow | |
| sudo apt update | |
| sudo apt-get install -y -V ca-certificates lsb-release wget | |
| wget https://packages.apache.org/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | |
| sudo apt update | |
| sudo apt-get install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | |
| sudo apt update | |
| # Install libcurl-dev as a workaround for Arrow CMake config issue | |
| # See: https://github.com/apache/arrow/issues/48885 | |
| sudo apt-get install -y --no-install-recommends \ | |
| libcurl4-openssl-dev \ | |
| libarrow-dev \ | |
| libparquet-dev | |
| # Install Apache Arrow | |
| sudo apt update | |
| sudo apt-get install -y -V ca-certificates lsb-release wget | |
| wget "https://packages.apache.org/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb" | |
| sudo apt update | |
| sudo apt-get install -y -V "./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb" | |
| sudo apt update | |
| # Install libcurl-dev as a workaround for Arrow CMake config issue | |
| # See: https://github.com/apache/arrow/issues/48885 | |
| sudo apt-get install -y --no-install-recommends \ | |
| libcurl4-openssl-dev \ | |
| libarrow-dev \ | |
| libparquet-dev |
🧰 Tools
🪛 Shellcheck (0.11.0)
[warning] 51-51: Quote this to prevent word splitting.
(SC2046)
[warning] 51-51: Quote this to prevent word splitting.
(SC2046)
[warning] 53-53: Quote this to prevent word splitting.
(SC2046)
🤖 Prompt for AI Agents
In `@tools/ci/deps-ubuntu.sh` around lines 48 - 60, The wget and apt install lines
in tools/ci/deps-ubuntu.sh use unquoted command substitutions which can cause
word-splitting (ShellCheck SC2046); update the two occurrences of wget
https://packages.apache.org/.../apache-arrow-apt-source-latest-$(lsb_release
--codename --short).deb and sudo apt-get install -y -V
./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb to quote
the substitutions (e.g. wrap the entire URL/path in double quotes or quote the
$(...) portion) so the produced URL/path is treated as a single token by wget
and apt-get.
Completes the Arrow 23+ CMake configuration workaround by ensuring curl is available on all platforms: - macOS: Add curl to Homebrew dependencies - Windows/vcpkg: Add curl to vcpkg.json dependencies See: apache/arrow#48885 Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
Funnily, this plays well with our Qt replacement efforts since we have non-hidden access to curl now. |
Arrow 23+ has a CMake configuration issue where the CURL dependency is not
properly exported via find_dependency(). This caused build failures when
using static libarrow.
Instead of pinning to Arrow 22.x, apply the recommended workaround:
See: apache/arrow#48885
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.