At the moment Acero Aggregates output contains aggregate fields followed by key fields. In Substrait this is the other way around. Also, it is not necessary to keep this static and use a project node to fulfill the requirement. It is rather important to modify this order and update the corresponding test cases.
Reporter: Vibhatha Lakmal Abeykoon / @vibhatha
Note: This issue was originally created as ARROW-17656. Please see the migration documentation for further details.