Github user ehiggs commented on the pull request: https://github.com/apache/spark/pull/4204#issuecomment-71740260 Thanks for your feedback. So the `FileInputFormat` is responsible for sorting the file pieces. I think this means any file format that one expects `sortByKey` to survive being saved and reloaded will have to, at the least, copy paste the `FileInputFormat.getSplits` and add a sort. It makes sense since `FileInputFormat` is in the hadoop project and hadoop doesn't really care about the ordering. It feels a bit inelegant. Is there a better solution? If that's the solution, then I guess we can close this and the open ticket. Thanks
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org