srowen commented on a change in pull request #22282: [SPARK-23539][SS] Add
support for Kafka headers in Structured Streaming
URL: https://github.com/apache/spark/pull/22282#discussion_r247349518
##########
File path:
external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaDataConsumerSuite.scala
##########
@@ -62,9 +59,11 @@ class KafkaDataConsumerSuite extends SharedSQLContext with
PrivateMethodTester {
test("SPARK-23623: concurrent use of KafkaDataConsumer") {
val topic = "topic" + Random.nextInt()
- val data = (1 to 1000).map(_.toString)
+ val data = (1 to 1000).map( i =>
+ (i.toString, Array(("once", i.toString.getBytes), ("twice", (i *
2).toString.getBytes)))
Review comment:
`new String` and `getBytes` always need a charset like
`StandardCharsets.UTF_8`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]