You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/04/29 21:12:09 UTC
[GitHub] [spark] HeartSaVioR commented on a change in pull request #31944: [SPARK-34854][SQL][SS] Expose source metrics via progress report and add Kafka use-case to report delay.
HeartSaVioR commented on a change in pull request #31944:
URL: https://github.com/apache/spark/pull/31944#discussion_r623398237
##########
File path: external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaSourceOffset.scala
##########
@@ -62,4 +63,17 @@ private[kafka010] object KafkaSourceOffset {
*/
def apply(offset: SerializedOffset): KafkaSourceOffset =
KafkaSourceOffset(JsonUtils.partitionOffsets(offset.json))
+
+ /**
+ * Returns [[KafkaSourceOffset]] from a streaming.Offset
+ */
+ def apply(offset: streaming.Offset): KafkaSourceOffset = {
Review comment:
Nice to refer non-deprecated one :) I missed that `Offset` type in above method is deprecated.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org