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

   ### Describe the enhancement requested
   
   As far as I can tell, it's not officially documented that grouping maintains 
the order of its keys, but it has seemed that way until recently. Starting with 
13.0.0.dev, I've noticed ordering changes intermittently. I think this is an 
important feature of grouping, as with sorting.
   
   This example outputs differences reliably on 13.0.0.dev516.
   ```python
   import pyarrow as pa
   
   array = pa.chunked_array([list('aba'), list('bcb')])
   table = pa.table({'key': array})
   for i in range(100):
       groups = table.group_by(['key']).aggregate([])
       if groups['key'].to_pylist() != list('abc'):
           print(i, groups['key'])
   ```
   
   ### Component(s)
   
   C++, 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: [email protected]

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

Reply via email to