pitrou commented on issue #46128:
URL: https://github.com/apache/arrow/issues/46128#issuecomment-2821065208

   > > A better implementation would be to keep the original buffer but slice 
it in multiple view buffers. This is exactly what the comment suggests:
   > 
   > I understand that StringView types can utilize multiple data buffers. 
However, is it problematic to have multiple buffers that don’t own their 
memory? Specifically, is there an assumption that every buffer in an array must 
own the data it points to? I gather you’re suggesting that one buffer could own 
the data while others merely reference it.
   
   Slicing a buffer produces a buffer that owns its memory. See the 
`SliceBuffer` function implementation.
   
   > Actually, this compute function is not scalar. From what I observe in 
Arrow, the `unique` compute function is classified as a vector function.
   
   Ah, right. Then perhaps `vector_string.cc`?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to