feat(r/sedonadb): Add R bindings#23
Merged
jiayuasu merged 14 commits intoapache:mainfrom Sep 10, 2025
Merged
Conversation
5f13c9b to
1b54523
Compare
4815c34 to
42944e0
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive R bindings for Apache SedonaDB, providing R users with access to a lightweight spatial query engine with SQL capabilities and Arrow-based interoperability. The implementation includes full test coverage and CI support for macOS and Linux platforms.
Key changes:
- R package structure with Rust backend integration using savvy framework
- Spatial data processing capabilities with Arrow/nanoarrow integration
- Test suite covering dataframes, contexts, and ADBC driver functionality
Reviewed Changes
Copilot reviewed 51 out of 57 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| r/sedonadb/tests/testthat/*.R | Comprehensive test suite for dataframe operations, context management, and ADBC driver |
| r/sedonadb/src/rust/src/*.rs | Rust implementation providing core functionality for contexts, dataframes, and runtime management |
| r/sedonadb/src/*.c, *.h | C interface and initialization code for R integration |
| r/sedonadb/R/*.R | R package code implementing user-facing API and S3 methods |
| r/sedonadb/man/*.Rd | Documentation files for exported functions |
| r/sedonadb/DESCRIPTION, NAMESPACE | Package metadata and exported functions |
| .github/workflows/r.yml | CI configuration for testing R package on multiple platforms |
| Cargo.toml | Updated workspace to include R package's Rust components |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds R bindings to sedonadb. The exposed functionality is slightly less than that of Python but has generally the same scope (SQL, Arrow-based interop with the rest of the ecosystem). This works (and is tested on CI) for MacOS and Linux...Windows I ran into some trouble with and is a battle for a different day.