Github user zsxwing commented on the pull request:

    https://github.com/apache/spark/pull/9775#issuecomment-157917739
  
    @dtolpin could you add the following test to `WindowFunctionTests` in 
`python/pyspark/streaming/tests.py`? It should reproduce the issue.
    ```Python
        def test_reduce_by_key_and_window_with_none_invFunc(self):
            input = [range(1), range(2), range(3), range(4), range(5), range(6)]
    
            def func(dstream):
                return dstream.map(lambda x: (x, 1))\
                    .reduceByKeyAndWindow(operator.add, None, 5, 1)\
                    .filter(lambda kv: kv[1] > 0).count()
    
            expected = [[2], [4], [6], [6], [6], [6]]
            self._test_func(input, func, expected)
    ```


---
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]

Reply via email to