You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ben Kietzman (Jira)" <ji...@apache.org> on 2020/12/17 18:49:00 UTC

[jira] [Assigned] (ARROW-10405) [C++] IsIn kernel should be able to lookup dictionary in string

     [ https://issues.apache.org/jira/browse/ARROW-10405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ben Kietzman reassigned ARROW-10405:
------------------------------------

    Assignee: Weston Pace  (was: Ben Kietzman)

> [C++] IsIn kernel should be able to lookup dictionary in string
> ---------------------------------------------------------------
>
>                 Key: ARROW-10405
>                 URL: https://issues.apache.org/jira/browse/ARROW-10405
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Neal Richardson
>            Assignee: Weston Pace
>            Priority: Major
>             Fix For: 3.0.0
>
>
> Repro in R:
> {code}
> > a1 <- Array$create(c("A", "B", "C"))
> > a2 <- Array$create(as.factor(c("A", "B", "C")))
> > a1
> Array
> <string>
> [
>   "A",
>   "B",
>   "C"
> ]
> > a2
> DictionaryArray
> <dictionary<values=string, indices=int8>>
> -- dictionary:
>   [
>     "A",
>     "B",
>     "C"
>   ]
> -- indices:
>   [
>     0,
>     1,
>     2
>   ]
> > arrow:::call_function("is_in_meta_binary", a1, Array$create("B"))
> <pointer: 0x5575885e9070>
> > arrow:::call_function("is_in_meta_binary", a2, Array$create("B"))
> Error in compute__CallFunction(function_name, args, options) : 
>   Invalid: Array type didn't match type of values set: dictionary<values=string, indices=int8, ordered=0> vs string
> {code}



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