We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7a0b4 commit 4c06261Copy full SHA for 4c06261
src/main/scala/net/heartsavior/spark/KafkaOffsetCommitterListener.scala
@@ -38,8 +38,8 @@ class KafkaOffsetCommitterListener extends StreamingQueryListener with Logging {
38
val query = SparkSession.active.streams.get(event.progress.id)
39
if (query != null) {
40
val exec = query match {
41
- case query: StreamingQueryWrapper => Some(query.streamingQuery.lastExecution)
42
- case query: StreamExecution => Some(query.lastExecution)
+ case query: StreamingQueryWrapper => Option(query.streamingQuery.lastExecution)
+ case query: StreamExecution => Option(query.lastExecution)
43
case _ =>
44
logWarning(s"Unexpected type of streaming query: ${query.getClass}")
45
None
0 commit comments