Github user kiszk commented on a diff in the pull request:
https://github.com/apache/spark/pull/22039#discussion_r208666245
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/MicroBatchExecution.scala
---
@@ -394,6 +394,9 @@ class MicroBatchExecution(
case (src: Source, off) => src.commit(off)
case (reader: MicroBatchReader, off) =>
reader.commit(reader.deserializeOffset(off.json))
+ case (src, _) =>
+ throw new IllegalArgumentException(
+ s"Unknows source is found at constructNextBatch: $src")
--- End diff --
nit: `Unknows` -> `Unknown`
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]