You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yubin Li (Jira)" <ji...@apache.org> on 2023/08/30 06:19:00 UTC

[jira] [Comment Edited] (FLINK-32993) Datagen connector produce unexpected Char type data

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

Yubin Li edited comment on FLINK-32993 at 8/30/23 6:18 AM:
-----------------------------------------------------------

[~337361684@qq.com] Char type is different obviously with others, field length has been explictly configured in the type definition by users, and others not. the current behavior is confusing users. maybe we can help users to configure it as you pointed automaticly.

!image-2023-08-30-13-44-10-106.png!

besides, the following results show that the behavior has made wrong data in the downstream tables.

!image-2023-08-30-13-56-12-468.png!

!image-2023-08-30-13-56-28-403.png!


was (Author: liyubin117):
[~337361684@qq.com] Char type is different obviously with others, field length has been explictly configured in the type definition by users, and others not. the current behavior is confusing users.

!image-2023-08-30-13-44-10-106.png!

besides, the following results show that the behavior has made wrong data in the downstream tables.

!image-2023-08-30-13-56-12-468.png!

!image-2023-08-30-13-56-28-403.png!

> Datagen connector produce unexpected Char type data
> ---------------------------------------------------
>
>                 Key: FLINK-32993
>                 URL: https://issues.apache.org/jira/browse/FLINK-32993
>             Project: Flink
>          Issue Type: Improvement
>          Components: Connectors / Common
>    Affects Versions: 1.19.0
>            Reporter: Yubin Li
>            Priority: Major
>         Attachments: image-2023-08-30-11-47-05-887.png, image-2023-08-30-11-47-43-719.png, image-2023-08-30-11-51-44-498.png, image-2023-08-30-13-44-10-106.png, image-2023-08-30-13-56-12-468.png, image-2023-08-30-13-56-28-403.png
>
>
> create table as follows:
> !image-2023-08-30-11-51-44-498.png!
> results:
> !image-2023-08-30-11-47-05-887.png!
> I have found that Char type data length is 100, which same as String type, it is caused by the two types use the same data generation logic, and we could correct it.



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