HeartSaVioR commented on a change in pull request #26153:
[SPARK-29500][SQL][SS] Support partition column when writing to Kafka
URL: https://github.com/apache/spark/pull/26153#discussion_r337464355
##########
File path:
external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaSinkSuite.scala
##########
@@ -515,3 +591,14 @@ class KafkaSinkBatchSuiteV2 extends
KafkaSinkBatchSuiteBase {
}
}
}
+
+class TestKafkaPartitioner extends DefaultPartitioner {
+ override def partition(
+ topic: String,
+ key: Any,
+ keyBytes: Array[Byte],
+ value: Any,
+ valueBytes: Array[Byte],
+ cluster: Cluster)
+ : Int = 0
Review comment:
you can take a look at other codes and see how the code looks like. most
likely we don't prefer unnecessary line.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]