[
https://issues.apache.org/jira/browse/FLINK-28908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated FLINK-28908:
-----------------------------------
Labels: pull-request-available (was: )
> 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
> 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)