You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Xingbo Huang (Jira)" <ji...@apache.org> on 2022/10/16 04:35:00 UTC

[jira] [Closed] (FLINK-29477) ClassCastException when collect primitive array to Python

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

Xingbo Huang closed FLINK-29477.
--------------------------------
    Fix Version/s: 1.16.0
                       (was: 1.17.0)
                       (was: 1.16.1)
       Resolution: Fixed

Merged into master via c85e6ec45bebb2eb376a911e11294cd118893fb3

Merged into release-1.16 via b0d4dd3a1eaf648f67e0ca7cb075591ecb69e2c4

Merged into release-1.15 via 507b93eef2af79ef2ad5752e1271e5c8915bb15f

> ClassCastException when collect primitive array to Python
> ---------------------------------------------------------
>
>                 Key: FLINK-29477
>                 URL: https://issues.apache.org/jira/browse/FLINK-29477
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Python
>    Affects Versions: 1.16.0, 1.15.2
>            Reporter: Juntao Hu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.16.0, 1.15.3
>
>
> How to reproduce this bug:
> {code:java}
> ds = env.from_collection([1, 2], type_info=Types.PRIMITIVE_ARRAY(Types.INT()))
> ds.execute_and_collect(){code}
> got:
> {code:java}
> java.lang.ClassCastException: class [I cannot be cast to class [Ljava.lang.Object {code}



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