You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Eduardo Ponce (Jira)" <ji...@apache.org> on 2021/09/02 17:19:00 UTC

[jira] [Commented] (ARROW-13866) [R] Implement Options for all compute kernels available via list_compute_functions

    [ https://issues.apache.org/jira/browse/ARROW-13866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17408997#comment-17408997 ] 

Eduardo Ponce commented on ARROW-13866:
---------------------------------------

I think the task of identifying missing FunctionOptions can be automated. I am currently working on a script to help with this issue.

> [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
>            Assignee: Nic Crane
>            Priority: Major
>
> 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)