Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-24056][SS] Make consumer creation lazy in Kafka source for Str…
…uctured streaming ## What changes were proposed in this pull request? Currently, the driver side of the Kafka source (i.e. KafkaMicroBatchReader) eagerly creates a consumer as soon as the Kafk aMicroBatchReader is created. However, we create dummy KafkaMicroBatchReader to get the schema and immediately stop it. Its better to make the consumer creation lazy, it will be created on the first attempt to fetch offsets using the KafkaOffsetReader. ## How was this patch tested? Existing unit tests Author: Tathagata Das <tathagata.das1565@gmail.com> Closes #21134 from tdas/SPARK-24056.
- Loading branch information