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

    https://github.com/apache/spark/pull/15969#discussion_r89037554
  
    --- Diff: 
external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaSourceSuite.scala
 ---
    @@ -413,6 +414,43 @@ class KafkaSourceSuite extends KafkaSourceTest {
         )
       }
     
    +  test("Kafka column types") {
    +    val now = System.currentTimeMillis()
    +    val topic = newTopic()
    +    testUtils.createTopic(newTopic(), partitions = 1)
    +    testUtils.sendMessages(topic, Array(1).map(_.toString))
    +
    +    val reader = spark
    +      .readStream
    +      .format("kafka")
    +      .option("kafka.bootstrap.servers", testUtils.brokerAddress)
    +      .option("kafka.metadata.max.age.ms", "1")
    +      .option("startingOffsets", s"earliest")
    +      .option("subscribe", topic)
    +
    +    val kafka = reader.load()
    --- End diff --
    
    nit: why have separate var for reader


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to