dianfu commented on a change in pull request #15590:
URL: https://github.com/apache/flink/pull/15590#discussion_r612270089
##########
File path: flink-python/pyflink/datastream/tests/test_data_stream.py
##########
@@ -1145,6 +1145,21 @@ def test_reduce_with_state(self):
expected.sort()
self.assertEqual(expected, results)
+ def test_function_with_error(self):
+ ds = self.env.from_collection([('a', 0), ('b', 0), ('c', 1), ('d', 1),
('e', 1)],
+ type_info=Types.ROW([Types.STRING(),
Types.INT()]))
+ keyed_stream = ds.key_by(MyKeySelector(), key_type=Types.INT())
+
+ def flat_map_func(x):
+ raise ValueError('flat_map_func error')
+ yield x
Review comment:
unnecessary line
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]