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

[jira] [Commented] (ARROW-14068) [R] Better handling of calling string functions on dictionaries

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

David Li commented on ARROW-14068:
----------------------------------

Oh, interesting. We could dictionary-decode in C++ but ideally we should operate on the dictionary itself if possible.

> [R] Better handling of calling string functions on dictionaries
> ---------------------------------------------------------------
>
>                 Key: ARROW-14068
>                 URL: https://issues.apache.org/jira/browse/ARROW-14068
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>            Reporter: Nicola Crane
>            Priority: Major
>
> When working with R tables that have factor columns and then have been converted into Arrow Tables, it's not pretty when we try to call string functions on those columns (which are now dictionaries)
> {code:java}
> Table$create(iris) %>%
>   mutate(x = str_to_lower(Species))
> ## Error: NotImplemented: Function utf8_lower has no kernel matching input types (array[dictionary<values=string, indices=int8, ordered=0>])
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)