Skip to content

Remove Arrow 22 version pin and use CURL workaround for Arrow 23+ - #8679

Merged
timosachsenberg merged 2 commits into
developfrom
claude/undo-pin-workaround-VJ8w0
Jan 19, 2026
Merged

timosachsenberg merged 2 commits into
developfrom
claude/undo-pin-workaround-VJ8w0

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jan 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Summary by CodeRabbit

  • Chores
    • Improved compatibility with Arrow 23+ by enhancing CURL dependency resolution in the build configuration.
    • Streamlined Ubuntu CI dependency installation by simplifying library setup and removing Arrow version-specific constraints.
    • Added curl to macOS CI install list.
    • Added curl to the vcpkg dependency manifest.

✏️ Tip: You can customize this high-level summary in your review settings.

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
@coderabbitai

coderabbitai Bot commented Jan 19, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds 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

Cohort / File(s) Summary
CMake: Arrow/Parquet detection
cmake/cmake_findExternalLibs.cmake
Adds find_package(CURL QUIET) inside the WITH_PARQUET block to ensure CURL is discovered/exported for Arrow 23+ without failing the configure step.
CI: Ubuntu dependencies
tools/ci/deps-ubuntu.sh
Removes manual Arrow 22.x APT source/pinning flow and installs libcurl4-openssl-dev, libarrow-dev, and libparquet-dev via apt.
CI: macOS dependencies
tools/ci/deps-macos.sh
Adds curl to the Homebrew install list.
Package manifest
vcpkg.json
Adds curl to vcpkg dependencies.

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

🐰 I hopped through CMake, sniffed out CURL's trail,
Arrow and Parquet now tug at my tail,
CI bottles filled with libs so neat,
Packages marching — a bunny's tiny feat! 🥕✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately and specifically describes the main changes: removing the Arrow 22 version pin and implementing a CURL workaround for Arrow 23+ compatibility.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@claude

claude Bot commented Jan 19, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@coderabbitai coderabbitai Bot 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.

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()

Comment thread tools/ci/deps-ubuntu.sh
Comment on lines +48 to +60
# 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

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.

⚠️ Potential issue | 🟡 Minor

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.

Suggested change
# 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]>
@jpfeuffer

Copy link
Copy Markdown
Contributor

Funnily, this plays well with our Qt replacement efforts since we have non-hidden access to curl now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants