MaxNevermind commented on code in PR #44636:
URL: https://github.com/apache/spark/pull/44636#discussion_r1449773657
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/FileStreamOptions.scala:
##########
@@ -50,11 +50,25 @@ class FileStreamOptions(parameters:
CaseInsensitiveMap[String]) extends Logging
}
}
+ val maxBytesPerTrigger: Option[Long] =
parameters.get("maxBytesPerTrigger").map { str =>
+ Try(str.toInt).toOption.filter(_ > 0).map(op =>
Review Comment:
fixed
##########
sql/core/src/test/scala/org/apache/spark/sql/streaming/FileStreamSourceSuite.scala:
##########
@@ -1202,51 +1210,60 @@ class FileStreamSourceSuite extends
FileStreamSourceTest {
/** Check how many batches have executed since the last time this check
was made */
var lastBatchId = -1L
+
Review Comment:
fixed
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]