R-JunmingChen opened a new issue, #37378:
URL: https://github.com/apache/arrow/issues/37378

   ### Describe the enhancement requested
   
   ## Describe the enhancement requested
   DictionaryArray could have unused dictionary values. This is a obstacle to 
finish #37100. A Dictionary Compaction Function, which removes unused values in 
dictionary, is useful to solve the problem. Besides, #37277 has the same 
request in Go implementation.
   
   Here is a pesudo example:
   ```
   dict_a
   dictionary: ["1", "2", "3"]
   indices: [0, 1, 0, 1]
   
   dictionary_compaction(dict_a)
   dictionary: ["1", "2"]
   indices: [0, 1, 0, 1]
   ```
   
   ## Component(s)
   C++
   
   ### Component(s)
   
   C++


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to