HyukjinKwon commented on a change in pull request #24967: [SPARK-28163][SS] Use 
CaseInsensitiveMap for KafkaOffsetReader
URL: https://github.com/apache/spark/pull/24967#discussion_r304784506
 
 

 ##########
 File path: 
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaContinuousStream.scala
 ##########
 @@ -46,7 +46,7 @@ import org.apache.spark.sql.util.CaseInsensitiveStringMap
  *                       properly read.
  */
 class KafkaContinuousStream(
-    offsetReader: KafkaOffsetReader,
+    private val offsetReader: KafkaOffsetReader,
 
 Review comment:
   We can also `private[kafka010] offsetReader: KafkaOffsetReader`. At least I 
found one instance:
   
   ```scala
     // Initialized when creating reader factories. If this diverges from the 
partitions at the latest
     // offsets, we need to reconfigure.
     // Exposed outside this object only for unit tests.
     @volatile private[sql] var knownPartitions: Set[TopicPartition] = _
   ```

----------------------------------------------------------------
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]

Reply via email to