Github user viirya commented on the issue:

    https://github.com/apache/spark/pull/16724
  
    @cloud-fan Is the current change not suitable? We can change it to only 
preserve data order when specifying partitioning and no bucketing for the 
output.
    
    This change only adds a new constructor to `UnsafeKVExternalSorter`.  No 
other API change I think. As the data output is going through this external 
sorter, it definitely changes the data order without this change. I think we 
may not be able to preserve data order with a workaround which doesn't touch 
`UnsafeKVExternalSorter`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to