Skip to content

Conversation

@dtolpin
Copy link
Contributor

@dtolpin dtolpin commented Nov 21, 2015

when invFunc is None, reduceByKeyAndWindow(func, None, winsize, slidesize) is equivalent to

 reduceByKey(func).window(winsize, slidesize).reduceByKey(winsize, slidesize)

and no checkpoint is necessary. The corresponding Scala code does exactly that, but Python code always creates a windowed stream with obligatory checkpointing. The patch fixes this.

I do not know how to unit-test this.

reduceByKeyAndWindow(func, None, window_size, slide_size) is equivalent to reduceByKey(func).window(window_size, slide_size).reduceByKey(func) and should not require checkpointing.
@dtolpin
Copy link
Contributor Author

dtolpin commented Nov 25, 2015

Any update on this please?

@zsxwing
Copy link
Member

zsxwing commented Dec 16, 2015

Jenkins, test this please

@zsxwing
Copy link
Member

zsxwing commented Dec 16, 2015

retest this please

@zsxwing
Copy link
Member

zsxwing commented Dec 16, 2015

LGTM pending tests

@zsxwing
Copy link
Member

zsxwing commented Dec 16, 2015

retest this please

@SparkQA
Copy link

SparkQA commented Dec 16, 2015

Test build #47848 has finished for PR 9888 at commit 6730f72.

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

@zsxwing
Copy link
Member

zsxwing commented Dec 16, 2015

retest this please

@SparkQA
Copy link

SparkQA commented Dec 16, 2015

Test build #47856 has finished for PR 9888 at commit 60cfd64.

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

@zsxwing
Copy link
Member

zsxwing commented Dec 17, 2015

retest this please

@SparkQA
Copy link

SparkQA commented Dec 17, 2015

Test build #47870 has finished for PR 9888 at commit 8a92809.

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

@zsxwing
Copy link
Member

zsxwing commented Dec 17, 2015

retest this please

@SparkQA
Copy link

SparkQA commented Dec 17, 2015

Test build #47877 has finished for PR 9888 at commit 8a92809.

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

@zsxwing
Copy link
Member

zsxwing commented Dec 17, 2015

Merging to master. Thanks @dtolpin

@asfgit asfgit closed this in 437583f Dec 17, 2015
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.

3 participants