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

Maarten Breddels commented on ARROW-9489:
-----------------------------------------

Yes, I thought about that too. Although I think a `np.where` equivalent would 
be more general. Sth like:
{code:java}
pc.where(pc.is_null(arr), arr2, arr)  # equivalent what you described
pc.where(pc.is_null(arr), 'c', arr)  # less performant version of fill_null
{code}
I could explore what you describe, and see if we can do some template 
programming so that we can generalize this to other kernels as well. But I 
think a 'where' kernel would make more sense at this point in time.

> [C++] Add fill_null kernel implementation for (array[string], scalar[string])
> -----------------------------------------------------------------------------
>
>                 Key: ARROW-9489
>                 URL: https://issues.apache.org/jira/browse/ARROW-9489
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Uwe Korn
>            Assignee: Maarten Breddels
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.0.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>




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

Reply via email to