Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/check-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
matrix:
feature:
- arrow
- geoarrow
- geoarrow-08
- polars
- polars-51
Expand Down Expand Up @@ -54,7 +55,8 @@ jobs:
extra-packages: |
any::wk
any::geoarrow
any::vctrs
- name: Set LD_LIBRARY_PATH
run: echo "LD_LIBRARY_PATH=$(R RHOME)/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
- name: cargo test
run: cargo test --features geoarrow-08
run: cargo test --features geoarrow
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 58.1.2

### New features

- Add `WkbViewArray` and `WktViewArray` to the geoarrow conversions, so `geoarrow.wkb` and `geoarrow.wkt` backed by `binary_view` and `string_view` read without being rewritten to the plain types first. This is the extension typed case; a bare `binary_view` column carrying no geoarrow metadata is still storage rather than geometry and is unaffected.

## 58.1.1

### Bug fixes
Expand Down
79 changes: 40 additions & 39 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "arrow_extendr"
version = "58.1.1"
version = "59.0.0"
edition = "2024"
# matches arrow
rust-version = "1.85.0"
Expand All @@ -13,18 +13,18 @@ categories = ["development-tools::ffi"]
include = ["Cargo.toml", "README.md", "src/*"]

[package.metadata.docs.rs]
features = ["geoarrow-08", "polars-53"]
features = ["geoarrow", "polars-53"]

[lib]
crate-type = ["lib", "staticlib"]
name = "arrow_extendr"

[dependencies]
anyhow = "1"
arrow = { version = "58.3.0", features = ["ffi"], optional = true }
arrow = { version = ">=58, <60", features = ["ffi"], optional = true }
extendr-api = ">=0.8.1"
extendr-ffi = "0.9.0"
geoarrow-array = { version = "0.8", optional = true }
geoarrow-array = { version = ">=0.8, <0.10", optional = true }
polars-core = {
version = "0.53.0",
features = [
Expand Down Expand Up @@ -75,13 +75,14 @@ polars-core-051 = {
anyhow = "1"
extendr-engine = "0.9.0"
geo-types = "0.7"
geoarrow-schema = "0.8"
geoarrow-schema = ">=0.8, <0.10"
serial_test = "3"

[features]
default = ["arrow"]
arrow = ["dep:arrow"]
geoarrow-08 = ["arrow", "dep:geoarrow-array"]
geoarrow = ["arrow", "dep:geoarrow-array"]
geoarrow-08 = ["geoarrow"]
polars = ["polars-53"]
polars-51 = ["arrow", "dep:polars-core-051"]
polars-53 = ["arrow", "dep:polars-core"]
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Arrow memory is exchanged via the [Arrow C Data Interface](https://arrow.apache.
| Feature | Description |
| ------- | ----------- |
| `arrow` | Core arrow-rs interop (default) |
| `geoarrow-08` | GeoArrow array support via geoarrow-array 0.8 |
| `geoarrow-09` | GeoArrow array support via geoarrow-array 0.9 |
| `polars` | Polars interop, alias for `polars-53` |
| `polars-53` | Polars interop for polars-core 0.53 |
| `polars-51` | Polars interop for polars-core 0.51 |
Expand Down Expand Up @@ -81,11 +81,11 @@ process_stream(query)

## GeoArrow interop

arrow-extendr supports [GeoArrow](https://geoarrow.org/) via the `geoarrow-08` feature flag, backed by the [geoarrow-array](https://docs.rs/geoarrow-array) crate.
arrow-extendr supports [GeoArrow](https://geoarrow.org/) via the `geoarrow-09` feature flag, backed by the [geoarrow-array](https://docs.rs/geoarrow-array) crate.

```toml
arrow_extendr = { version = "58.0.1", features = ["geoarrow-08"] }
geoarrow-array = "0.8"
arrow_extendr = { version = "59.0.0", features = ["geoarrow-09"] }
geoarrow-array = "0.9"
```

This enables the following conversions between Rust and R's `nanoarrow_array` objects:
Expand Down Expand Up @@ -144,15 +144,15 @@ These features are mutually exclusive — enabling more than one will produce a
### polars-core 0.53

```toml
arrow_extendr = { version = "58.0.1", features = ["polars-53"], default-features = false }
arrow_extendr = { version = "59.0.0", features = ["polars-53"], default-features = false }
polars-core = "0.53.0"
anyhow = "1"
```

### polars-core 0.51

```toml
arrow_extendr = { version = "58.0.1", features = ["polars-51"], default-features = false }
arrow_extendr = { version = "59.0.0", features = ["polars-51"], default-features = false }
polars-core = "0.51.0"
anyhow = "1"
```
Expand Down Expand Up @@ -208,6 +208,7 @@ At present, versions of arrow-rs are not compatible with each other. This means

**Versions**:

- 59.0.0
- 58.0.0
- 55.1.0
- 54.0.0
Expand Down
Loading
Loading