laglangyue commented on code in PR #43526:
URL: https://github.com/apache/spark/pull/43526#discussion_r1372512228


##########
connector/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/JsonUtils.scala:
##########
@@ -65,9 +68,9 @@ private object JsonUtils {
   def partitionOffsets(str: String): Map[TopicPartition, Long] = {
     try {
       Serialization.read[Map[String, Map[Int, Long]]](str).flatMap { case 
(topic, partOffsets) =>
-          partOffsets.map { case (part, offset) =>
-              new TopicPartition(topic, part) -> offset
-          }
+        partOffsets.map { case (part, offset) =>

Review Comment:
   I used dev/scalafmt because there were quite a few modified files, but it 
seems that this tool is not suitable for old code.I will roll back



-- 
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]

Reply via email to