Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/895#discussion_r13530268
--- Diff: core/src/main/scala/org/apache/spark/util/Utils.scala ---
@@ -862,6 +862,52 @@ private[spark] object Utils extends Logging {
Source.fromBytes(buff).mkString
}
+ def offsetBytes(files: Seq[File], startIndex: Long, endIndex: Long):
String = {
--- End diff --
Couldn't you add validation of the inputs and throw an exception? The
alternative of re-cursing forever seems like the worst thing, because it will
cause the user to experience really strange behavior.
---
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.
---