You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "YuriFeigin (via GitHub)" <gi...@apache.org> on 2023/08/31 09:59:50 UTC

[GitHub] [arrow] YuriFeigin opened a new issue, #37493: [python] Sort table on dictionary column failed

YuriFeigin opened a new issue, #37493:
URL: https://github.com/apache/arrow/issues/37493

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   Hello,
   
   I'm trying to sort a table on a column with dictionary type and getting the following error
   `pyarrow.lib.ArrowNotImplementedError: dictionary<values=string, indices=int32, ordered=0>`
   
   Here is a code the reproduce the error 
   ```
   import pyarrow as pa
   
   dictionary = pa.array(['a', 'b', 'c'])
   indices = pa.array([0, 1, 2, 0, 2])
   dictionary_array = pa.DictionaryArray.from_arrays(indices, dictionary)
   
   # this is working
   sorted_array = dictionary_array.sort()
   
   # this is equivalent to select specific column in a table
   chunked_dictionary_array = pa.chunked_array(dictionary_array)
   
   # this failed
   chunked_dictionary_array.sort()
   ```
   
   Thanks
   
   
   
   ### Component(s)
   
   Python


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow] js8544 closed issue #37493: [python] Sort table on dictionary column failed

Posted by "js8544 (via GitHub)" <gi...@apache.org>.
js8544 closed issue #37493: [python] Sort table on dictionary column failed
URL: https://github.com/apache/arrow/issues/37493


-- 
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: issues-unsubscribe@arrow.apache.org

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


[GitHub] [arrow] js8544 commented on issue #37493: [python] Sort table on dictionary column failed

Posted by "js8544 (via GitHub)" <gi...@apache.org>.
js8544 commented on issue #37493:
URL: https://github.com/apache/arrow/issues/37493#issuecomment-1700750657

   There's an existing issue for it: https://github.com/apache/arrow/issues/36772. I may implement it in the coming weeks.


-- 
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-unsubscribe@arrow.apache.org

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