R-JunmingChen opened a new issue, #38247: URL: https://github.com/apache/arrow/issues/38247
### Describe the enhancement requested It would be useful to detect usage of only a slice of the dictionary when a DictionaryArray call `Compact()`, so we can leverage `Slice()` to get compacted dictionary. This method is more efficient than `Take()`, which is what we currently use to obtain compacted dictionary. ### 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]
