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

Joris Van den Bossche commented on ARROW-9431:
----------------------------------------------

I think one difference in your example is that I expect the {{arr2}} to be of 
the same length as {{to_replace}} 

bq. Can we assume that 'to_replace' is a non-null Int64Array?

That might be the easiest for now. Or otherwise we can say nulls in 
{{to_replace}} give nulls in the output. The question is then how to interpret 
{{arr2}}, though (should it be of the same length as {{to_replace}}, or as the 
non-null values of {{to_replace}} ?)

bq. And should we enforce 'to_replace' being sorted (IMO this would be more 
efficient)?

Hmm, not sure. Also for {{Take}} we generally don't require sortedness of the 
indices, I think?

bq. What is the arity of this kernel? Unary or binary?

Ternary?

> [C++/Python] Kernel for SetItem(IntegerArray, values)
> -----------------------------------------------------
>
>                 Key: ARROW-9431
>                 URL: https://issues.apache.org/jira/browse/ARROW-9431
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++, Python
>    Affects Versions: 2.0.0
>            Reporter: Uwe Korn
>            Priority: Major
>
> We should have a kernel that allows overriding the values of an array using 
> an integer array as the indexer and a scalar or array of equal length as the 
> values.



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

Reply via email to