Github user tdas commented on the pull request:

    https://github.com/apache/spark/pull/3798#issuecomment-72770451
  
    Okay here are the two options.
    
    1. createRDD returns RDD[(K,V)] or RDD[R], and DStream.foreachRDD uses 
rdd.asInstanceOf[HasOffsetRanges]
    2. createRDD returns KafkaRDD[(K,V)] or KafkaRDD[R] and DStream.foreachRDD 
uses rdd.asInstanceOf[KafkaRDD[_]]
    
    I think I am okay with either one. Stepping back, my original concern was 
returning something that had no binary compatibility issues. Both solution 
suffices. Between these two, since you feel so strongly against (2), lets go 
with (1). 
    
    
    



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