apache / apache/arrow

[R] creating arrow supported expressions

Open
#45,438 18 comments 0 reactions 0 assignees View on GitHub
Component: R Status: needs champion Type: usage
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the usage question you have. Please include as many useful details as possible.

I'm working on creating R bindings to geoarrow-rs. These functions work with nanoarrow and `{geoarrow}`'s `geoarrow_vctr` class. I would like to also provide the ability to use these functions directly on an arrow `Table`, `Dataset`, `RecordBatch`, `RecordBatchReader`, etc.

When using my functions on these objects directly I get either:

```
Error in `centroid_()`:
! Expression not supported in Arrow
```

Is there any documentation on how to write functions such that they can be used directly on arrow objects? I'd like to encourage users of my package to use arrow objects whenever possible instead of collecting to in-memory data frames

### Component(s)

R

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.