Github user vackosar commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22143#discussion_r211379697
  
    --- Diff: 
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaStreamWriter.scala
 ---
    @@ -19,18 +19,23 @@ package org.apache.spark.sql.kafka010
     
     import scala.collection.JavaConverters._
     
    +import org.json4s.JsonDSL._
    +import org.json4s.jackson.JsonMethods._
    +
     import org.apache.spark.sql.catalyst.InternalRow
     import org.apache.spark.sql.catalyst.expressions.Attribute
     import org.apache.spark.sql.kafka010.KafkaWriter.validateQuery
    +import org.apache.spark.sql.sources.v2.CustomMetrics
     import org.apache.spark.sql.sources.v2.writer._
    -import org.apache.spark.sql.sources.v2.writer.streaming.StreamWriter
    +import org.apache.spark.sql.sources.v2.writer.streaming.{StreamWriter, 
SupportsCustomWriterMetrics}
     import org.apache.spark.sql.types.StructType
     
     /**
      * Dummy commit message. The DataSourceV2 framework requires a commit 
message implementation but we
      * don't need to really send one.
      */
    -case object KafkaWriterCommitMessage extends WriterCommitMessage
    +case class KafkaWriterCommitMessage(minOffset: KafkaSourceOffset, 
maxOffset: KafkaSourceOffset)
    --- End diff --
    
    I would have to rename the class itself to not add additional duplicate 
class. I would love to do that, it is just that I am not sure if it would be 
accepted.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to