bozhang2820 commented on a change in pull request #33763:
URL: https://github.com/apache/spark/pull/33763#discussion_r694627350
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/MicroBatchExecution.scala
##########
@@ -382,6 +413,23 @@ class MicroBatchExecution(
// Generate a map from each unique source to the next available offset.
val (nextOffsets, recentOffsets) = uniqueSources.toSeq.map {
+ case (s: FakeLatestOffsetSupportsTriggerAvailableNow, limit) =>
+ val originalSource = originalSources.getOrElse(s, throw new
IllegalStateException(
Review comment:
We can also combine this with the following pattern, but that would need
to change the type of `originalSource` to be more generic
(`SupportsAdmissionControl` instead of
`FakeLatestOffsetSupportsTriggerAvailableNow`).
--
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]