Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

tdas
Copy link
Contributor

@tdas tdas commented Jan 18, 2018

What changes were proposed in this pull request?

Self-explanatory.

How was this patch tested?

New python tests.

@tdas
Copy link
Contributor Author

tdas commented Jan 18, 2018

@zsxwing @jose-torres please take a look.

@SparkQA
Copy link

SparkQA commented Jan 18, 2018

Test build #86319 has finished for PR 20309 at commit d0eaabe.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jan 18, 2018

Test build #86323 has finished for PR 20309 at commit d087302.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jan 18, 2018

Test build #86329 has finished for PR 20309 at commit 5f905aa.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@tdas
Copy link
Contributor Author

tdas commented Jan 18, 2018

jenkins retest this please

@SparkQA
Copy link

SparkQA commented Jan 18, 2018

Test build #86334 has finished for PR 20309 at commit 5f905aa.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@@ -1518,6 +1518,12 @@ def test_stream_trigger(self):
except ValueError:
pass

# Should not take multiple args
try:
Copy link
Member

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
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise

asfgit pushed a commit that referenced this pull request Jan 18, 2018
…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>
@asfgit asfgit closed this in 2d41f04 Jan 18, 2018
@tdas
Copy link
Contributor Author

tdas commented Jan 18, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants