[
https://issues.apache.org/jira/browse/FLINK-16464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17053549#comment-17053549
]
Leonard Xu commented on FLINK-16464:
------------------------------------
Hi,[~ykt836]
I open a PR to fix this, Could you assign this issue to me?
and could you help review if you have time? :)
> result-mode tableau may shift when content contains Chinese String in SQL
> CLI
> -------------------------------------------------------------------------------
>
> Key: FLINK-16464
> URL: https://issues.apache.org/jira/browse/FLINK-16464
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Client
> Affects Versions: 1.11.0
> Reporter: Leonard Xu
> Assignee: Kurt Young
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.11.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
>
> result-mode tableau may shift when column content contains Chinese String in
> SQL CLI as following:
> {code:java}
> Flink SQL> select * from user_ino;
> +-----+----------------------+--------+----------------------+
> | +/- | user_name | is_new | content_col |
> +-----+----------------------+--------+----------------------+
> | + | sam | true | content |
> | + | 中文名 | false | content |
> | + | leonard | true | content |
> {code}
> We can calculate column widths with UDTF-8 format bytes not length of string
> to avoid this.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)