rhshadrach commented on issue #34890:
URL: https://github.com/apache/arrow/issues/34890#issuecomment-2638196242

   When specifying `null_encoding`, this method might not be a no-op. In fact, 
this very situation came up in pandas:
   
   https://github.com/pandas-dev/pandas/pull/60777/files#r1936339185
   
   Whether it is supported in the future or not, I am wondering if there is a 
better work around than what we are currently considering:
   
   ```python
   data = data.cast(data.type.value_type)
   encoded = data.dictionary_encode(null_encoding=null_encoding)
   ```
   
   Wasn't sure if I should open a new issue. Happy to if desired.


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