[ 
https://issues.apache.org/jira/browse/FLINK-17679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17106844#comment-17106844
 ] 

Huang Xingbo commented on FLINK-17679:
--------------------------------------

The suffix of bytes is ​​\x00 bytes, such as the example of b'x\x00\x00\x00' I 
mentioned in the description

> 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
>            Priority: Major
>             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 will use len() of Python function to compute the length. 



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

Reply via email to