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

Antoine Pitrou commented on ARROW-10207:
----------------------------------------

Hmm, this report may be mistaken. A scalar kernel always computes the output 
nulls by default, and there is no exception for list-returning scalar kernels.

> [C++] Unary kernels that results in a list have no preallocated offset buffer
> -----------------------------------------------------------------------------
>
>                 Key: ARROW-10207
>                 URL: https://issues.apache.org/jira/browse/ARROW-10207
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Maarten Breddels
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> I noticed in
> [https://github.com/apache/arrow/pull/8271]
> That a string->list[string] kernel does not have the offsets preallocated in 
> the output. I believe there is a preference for not doing allocations in 
> kernels, so this can be optimized at a higher level. I think it can also be 
> done in this case. 



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

Reply via email to