-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-23143][SS][PYTHON] Added python API for setting continuous trigger #20309
Conversation
@zsxwing @jose-torres please take a look. |
Test build #86319 has finished for PR 20309 at commit
|
Test build #86323 has finished for PR 20309 at commit
|
Test build #86329 has finished for PR 20309 at commit
|
jenkins retest this please |
Test build #86334 has finished for PR 20309 at commit
|
@@ -1518,6 +1518,12 @@ def test_stream_trigger(self): | |||
except ValueError: | |||
pass | |||
|
|||
# Should not take multiple args | |||
try: |
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.
@tdas, could we maybe test this by assertRaises
if it checks raising an exception?
@@ -802,23 +802,38 @@ def trigger(self, processingTime=None, once=None): | |||
>>> writer = sdf.writeStream.trigger(processingTime='5 seconds') | |||
>>> # trigger the query for just once batch of data | |||
>>> writer = sdf.writeStream.trigger(once=True) | |||
>>> # trigger the query for execution every 5 seconds |
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.
nit: not quite the right comment
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 otherwise
…gger ## What changes were proposed in this pull request? Self-explanatory. ## How was this patch tested? New python tests. Author: Tathagata Das <tathagata.das1565@gmail.com> Closes #20309 from tdas/SPARK-23143. (cherry picked from commit 2d41f04) Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
Merged it in the hope of making it to the RC2. Will address comments in a different PR. Thanks @jose-torres and @HyukjinKwon for reviewing. |
What changes were proposed in this pull request?
Self-explanatory.
How was this patch tested?
New python tests.