Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R] creating arrow supported expressions #45438

Open
JosiahParry opened this issue Feb 5, 2025 · 1 comment
Open

[R] creating arrow supported expressions #45438

JosiahParry opened this issue Feb 5, 2025 · 1 comment
Labels
Component: R Type: usage Issue is a user question

Comments

@JosiahParry
Copy link

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

@JosiahParry JosiahParry added the Type: usage Issue is a user question label Feb 5, 2025
@raulcd raulcd changed the title R: creating arrow supported expressions [R] creating arrow supported expressions Feb 6, 2025
@JosiahParry
Copy link
Author

It appears that there was a vignette 3 versions ago on the subject but since register_binding() has been removed form the exports.

https://arrow.apache.org/docs/dev/r/articles/developers/writing_bindings.html

Though that vignette seems specific to C++ functions already available.

It would be great to have documentation that describes how to write functions that are compatible with arrow + dplyr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: R Type: usage Issue is a user question
Projects
None yet
Development

No branches or pull requests

1 participant