{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/9775","labels_url":"https://api.github.com/repos/apache/spark/issues/9775/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/9775/comments","events_url":"https://api.github.com/repos/apache/spark/issues/9775/events","html_url":"https://github.com/apache/spark/pull/9775","id":117445521,"number":9775,"title":"[SPARK-11812] [PySpark] invFunc=None works properly with python's reduceByKeyAndWindow","user":{"login":"dtolpin","id":591245,"avatar_url":"https://avatars.githubusercontent.com/u/591245?v=3","gravatar_id":"","url":"https://api.github.com/users/dtolpin","html_url":"https://github.com/dtolpin","followers_url":"https://api.github.com/users/dtolpin/followers","following_url":"https://api.github.com/users/dtolpin/following{/other_user}","gists_url":"https://api.github.com/users/dtolpin/gists{/gist_id}","starred_url":"https://api.github.com/users/dtolpin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtolpin/subscriptions","organizations_url":"https://api.github.com/users/dtolpin/orgs","repos_url":"https://api.github.com/users/dtolpin/repos","events_url":"https://api.github.com/users/dtolpin/events{/privacy}","received_events_url":"https://api.github.com/users/dtolpin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-17T20:41:36Z","updated_at":"2015-11-19T19:53:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/9775","html_url":"https://github.com/apache/spark/pull/9775","diff_url":"https://github.com/apache/spark/pull/9775.diff","patch_url":"https://github.com/apache/spark/pull/9775.patch"},"body":"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,\r\nthus the case of invFunc=None (a common one when inverse reduction is not defined) was treated incorrectly, resulting in loss of data.\r\n\r\nIn addition, the docstring used wrong parameter names, also fixed."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/158176063","html_url":"https://github.com/apache/spark/pull/9775#issuecomment-158176063","issue_url":"https://api.github.com/repos/apache/spark/issues/9775","id":158176063,"user":{"login":"zsxwing","id":1000778,"avatar_url":"https://avatars.githubusercontent.com/u/1000778?v=3","gravatar_id":"","url":"https://api.github.com/users/zsxwing","html_url":"https://github.com/zsxwing","followers_url":"https://api.github.com/users/zsxwing/followers","following_url":"https://api.github.com/users/zsxwing/following{/other_user}","gists_url":"https://api.github.com/users/zsxwing/gists{/gist_id}","starred_url":"https://api.github.com/users/zsxwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsxwing/subscriptions","organizations_url":"https://api.github.com/users/zsxwing/orgs","repos_url":"https://api.github.com/users/zsxwing/repos","events_url":"https://api.github.com/users/zsxwing/events{/privacy}","received_events_url":"https://api.github.com/users/zsxwing/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T19:53:58Z","updated_at":"2015-11-19T19:53:58Z","body":"this is ok to test?"}}