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

    https://github.com/apache/spark/pull/9289#discussion_r43131969
  
    --- Diff: docs/streaming-kafka-integration.md ---
    @@ -181,7 +181,20 @@ Next, we discuss how to use this approach in your 
streaming application.
                );
        </div>
        <div data-lang="python" markdown="1">
    -           Not supported yet
    +           offsetRanges = []
    +
    +           def storeOffsetRanges(rdd):
    +               del offsetRanges[:]
    +               offsetRanges.extend(rdd.offsetRanges())
    --- End diff --
    
    I tried that and couldn't get it working - seems to be related to a new 
object being created instead of updating the old one.
    
    However, if I add `global offsetRanges` before, that seems to work fine. 
I'll push that change out.


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