GitHub user dtolpin opened a pull request:
https://github.com/apache/spark/pull/9775
invFunc=none work properly with python's reduceByKeyAndWindow
invFunc is optional and can be None. Instead of invFunc (the parameter)
invReduceFunc (a local function) was checked for trueness (that is, not None,
in this context). A local function is never None,
thus the case of invFunc=none (a common one when inverse reduction is not
defined) was treated incorrectly, resulting in loss of data.
In addition, the docstring used wrong parameter names, also fixed.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dtolpin/spark master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9775.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #9775
----
commit 3f777e10abc68fc0c389c8bf55ad56c7c33ea095
Author: David Tolpin <[email protected]>
Date: 2015-11-17T20:37:21Z
invFunc=none work properly with python's reduceByKeyAndWindow
----
---
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]