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

Dian Fu closed FLINK-28908.
---------------------------
      Assignee: Juntao Hu
    Resolution: Fixed

Fixed in:
- master via de8ff096a5344d85eb9be497902b99dd4b24e2a9 and 
9b50ff584ecdb76256be8c35ee01b2ecd03d3dcb
- release-1.15 via 63c1c1b9f6ee9669305e081030768b43a267c0f5
- release-1.14 via f0545f42607655187b53381506e55d33beec4542

> Coder for LIST type is incorrectly chosen is PyFlink
> ----------------------------------------------------
>
>                 Key: FLINK-28908
>                 URL: https://issues.apache.org/jira/browse/FLINK-28908
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Python
>    Affects Versions: 1.14.5, 1.15.1
>            Reporter: Juntao Hu
>            Assignee: Juntao Hu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.16.0, 1.15.2, 1.14.6
>
>
> Code to reproduce this bug, the result is `[None, None, None]`:
> {code:python}
> jvm = get_gateway().jvm
> env = StreamExecutionEnvironment.get_execution_environment()
> j_item = jvm.java.util.ArrayList()
> j_item.add(1)
> j_item.add(2)
> j_item.add(3)
> j_list = jvm.java.util.ArrayList()
> j_list.add(j_item)
> type_info = Types.LIST(Types.INT())
> ds = DataStream(env._j_stream_execution_environment.fromCollection(j_list, 
> type_info.get_java_type_info()))
> ds.map(lambda e: print(e))
> env.execute() {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to