dongjoon-hyun commented on a change in pull request #26123: [SPARK-27259][CORE]
Allow setting -1 as split size for InputFileBlock
URL: https://github.com/apache/spark/pull/26123#discussion_r335248950
##########
File path: core/src/main/scala/org/apache/spark/rdd/InputFileBlockHolder.scala
##########
@@ -76,7 +76,6 @@ private[spark] object InputFileBlockHolder {
def set(filePath: String, startOffset: Long, length: Long): Unit = {
require(filePath != null, "filePath cannot be null")
require(startOffset >= 0, s"startOffset ($startOffset) cannot be negative")
- require(length >= 0, s"length ($length) cannot be negative")
Review comment:
First of all, it's `private` to Spark. You should not depend on the private
implementation of Apache Spark. There is no guarantee for that and this is not
a regression of Apache Spark.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]