-
Notifications
You must be signed in to change notification settings - Fork 28.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-24014][PySpark] Add onStreamingStarted method to StreamingListener #21098
Conversation
@@ -23,6 +23,12 @@ class StreamingListener(object): | |||
def __init__(self): | |||
pass | |||
|
|||
def onStreamingStarted(self, streamingStarted): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although in #21057, it is mentioned that there will be an exception to be thrown if this method is lack. However, I can't reproduce such error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because PythonStreamingListener
have this method, I think it is still better to add it here. And I also add a test to make sure it works.
cc @HyukjinKwon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I already reviewed the main change.
Test build #89509 has finished for PR 21098 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Merging to master and branch 2.3. |
…ener ## What changes were proposed in this pull request? The `StreamingListener` in PySpark side seems to be lack of `onStreamingStarted` method. This patch adds it and a test for it. This patch also includes a trivial doc improvement for `createDirectStream`. Original PR is #21057. ## How was this patch tested? Added test. Author: Liang-Chi Hsieh <viirya@gmail.com> Closes #21098 from viirya/SPARK-24014. (cherry picked from commit 8bb0df2) Signed-off-by: jerryshao <sshao@hortonworks.com>
What changes were proposed in this pull request?
The
StreamingListener
in PySpark side seems to be lack ofonStreamingStarted
method. This patch adds it and a test for it.This patch also includes a trivial doc improvement for
createDirectStream
.Original PR is #21057.
How was this patch tested?
Added test.