davidhewitt commented on issue #7185:
URL: https://github.com/apache/arrow-rs/issues/7185#issuecomment-2920151078

   I was wondering, does this same problem also apply to dictionaries? From 
what I can tell from a quick look inside `write_array_data`, buffers are 
truncated to any sliced portion but it seems to me that unreferenced dictionary 
values might still be written (e.g. consider if the dictionary was passed 
through `filter` such that only a few keys exist, it looks to me that the 
values will be passed unchanged through the filter kernel). 
   
   I wonder if there's a possible need for a `.gc()` method on dictionaries 
which does similar to in the view arrays?


-- 
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