You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Dian Fu (Jira)" <ji...@apache.org> on 2020/05/14 07:08:00 UTC

[jira] [Closed] (FLINK-17679) Fix the bug of encoding bytes in cython coder

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

Dian Fu closed FLINK-17679.
---------------------------
      Assignee: Huang Xingbo
    Resolution: Fixed

Merged to master via 7b5f8536103ba557f68a7f31ebcc53629d85bd24

> Fix the bug of encoding bytes in cython coder
> ---------------------------------------------
>
>                 Key: FLINK-17679
>                 URL: https://issues.apache.org/jira/browse/FLINK-17679
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Python
>    Affects Versions: 1.11.0
>            Reporter: Huang Xingbo
>            Assignee: Huang Xingbo
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.11.0
>
>
> The python bytes b'x\x00\x00\x00' will be transposed to b'\x'. If we use strlen() of c function to compute the length of char*, we will get wrong length. So we need to use the Python function of len() to compute the length. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)