You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Nic Crane (Jira)" <ji...@apache.org> on 2021/09/02 16:10:00 UTC
[jira] [Created] (ARROW-13866) [R] Implement Options for all
compute kernels available via list_compute_functions
Nic Crane created ARROW-13866:
---------------------------------
Summary: [R] Implement Options for all compute kernels available via list_compute_functions
Key: ARROW-13866
URL: https://issues.apache.org/jira/browse/ARROW-13866
Project: Apache Arrow
Issue Type: Improvement
Components: R
Reporter: Nic Crane
I'm writing a section in the cookbook about calling kernels which don't have R bindings. I'm using {{utf8_ltrim}} as an example - it appears when we call {{list_compute_functions()}}. I tried to call it by searching for it in the C++ code, seeing that it requires a TrimOptions class of options, and then saw that it has a single parameter, characters.
I tried calling {{call_function("utf8_ltrim", Array$create(c("abc", "abacus", "abracadabra")), options = list(characters = "ab"))}} to see what would happen, which resulted in:
{{Error: Invalid: Attempted to initialize KernelState from null FunctionOptions}}
This is because TrimOptions isn't implemented in arrow/r/src/compute.cpp. We should go through all the compute functions listed via {{list_compute_functions()}} and ensure all of them have options implemented.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)