Skip to content

GH-51467: [CI][C++] Remove unused ranges include which breaks R build - #51469

Merged
raulcd merged 1 commit into
apache:mainfrom
raulcd:GH-51467
Sep 23, 2026
Merged

raulcd merged 1 commit into
apache:mainfrom
raulcd:GH-51467

Conversation

@raulcd

@raulcd raulcd commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Rationale for this change

After:

The nightly CI job for test-r-macos-as-cran failed due to ranges file not found:

 [ 95%] Building CXX object src/arrow/CMakeFiles/arrow_compute_objlib.dir/compute/kernels/vector_search_sorted.cc.o
/Users/runner/work/crossbow/crossbow/arrow/cpp/src/arrow/compute/kernels/vector_search_sorted.cc:23:10: fatal error: 'ranges' file not found
   23 | #include <ranges>
      |          ^~~~~~~~
1 error generated.

What changes are included in this PR?

Remove #include <ranges> as is never used on the file.

Are these changes tested?

Yes via CI

Are there any user-facing changes?

No

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 Sep 23, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit test-r-linux-as-cran test-r-macos-as-cran

@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #51467 has been automatically assigned in GitHub to PR creator.

@github-actions

Copy link
Copy Markdown

Revision: 07fa44a

Submitted crossbow builds: ursacomputing/crossbow @ actions-0376cfb562

Task Status
test-r-linux-as-cran GitHub Actions
test-r-macos-as-cran GitHub Actions

@raulcd
raulcd marked this pull request as ready for review September 23, 2026 09:59
@raulcd
raulcd requested review from pitrou and a lite review from Copilot September 23, 2026 09:59

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 review overview

🟢 Approval recommended

The focused change has no unresolved review issues.

Review effort: Lite
Findings: None

What changed in this PR

Removes the unused C++ <ranges> include that breaks macOS R builds with older toolchains.

Changes:

  • Deleted the unused standard-library header.
File Description
cpp/​src/​arrow/​compute/​kernels/​vector_search_sorted.cc Removes the problematic unused include.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@pitrou pitrou 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.

If it's unused, then obvious +1

@raulcd

raulcd commented Sep 23, 2026

Copy link
Copy Markdown
Member Author

If it's unused, then obvious +1

not only is unused, it breaks some builds :)

@raulcd
raulcd merged commit 5448aa7 into apache:main Sep 23, 2026
64 checks passed
@raulcd raulcd removed the awaiting committer review Awaiting committer review label Sep 23, 2026
@raulcd
raulcd deleted the GH-51467 branch September 23, 2026 15:32
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