You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Weston Pace (Jira)" <ji...@apache.org> on 2021/02/25 21:26:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17291231#comment-17291231 ]
Weston Pace commented on ARROW-10405:
-------------------------------------
FYI, there is some belief that this has been taken care of by the updated "dispatch best" work (ARROW-8919) so this might just be a matter of adding a test case or confirming the behavior.
> [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: Rok Mihevc
> Priority: Major
> Fix For: 4.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)