Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/21819#discussion_r210500530
--- Diff:
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/JsonUtils.scala
---
@@ -95,4 +95,20 @@ private object JsonUtils {
}
Serialization.write(result)
}
+
+ /**
+ * Write per-topic partition lag as json string
+ */
+ def partitionLags(latestOffsets: Map[TopicPartition, Long],
+ processedOffsets: Map[TopicPartition, Long]): String =
{
--- End diff --
Please go ahead if possible.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]