[ 
https://issues.apache.org/jira/browse/FLINK-25513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dian Fu closed FLINK-25513.
---------------------------
    Fix Version/s: 1.15.0
                   1.13.6
                   1.14.3
       Resolution: Fixed

Fixed in
- master via ed814c1a6feeda5fcbc1e50fc47820a64efe7e1c
- release-1.14 via 69dc8ba865560596d5c7248f6128612852757fcd
- release-1.13 via 1dc9faf75907c9a6b4051335b5a3083802ea053a

> CoFlatMapFunction requires both two flat_maps to yield something
> ----------------------------------------------------------------
>
>                 Key: FLINK-25513
>                 URL: https://issues.apache.org/jira/browse/FLINK-25513
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Python
>    Affects Versions: 1.13.0
>            Reporter: chendan
>            Assignee: chendan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.15.0, 1.13.6, 1.14.3
>
>
> When I used CoFlatMapFunction in pyflink, I found out that I must put yield 
> something in both flat_map1 and flat_map2. Otherwise, it will raise an 
> exception: TypeError: 'NoneType' object is not iterable.
> In pyflink source code: datastream.py,  the process_element2 of 
> KeyedCoMapCoProcessFunction class in ConnectedStreams class has only one 
> sentence: 
> {color:#cc7832}yield 
> {color}{color:#94558d}self{color}._underlying.map2(value). if the flat_map2 
> has not yield something it will result in exception. So it should judge 
> whether the {color:#94558d}self{color}._underlying.map2(value) is None or not 
> firstly.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to