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

Leonard Xu updated FLINK-16464:
-------------------------------
    Description: 
 

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.

  was:
 

result-mode tableau may shift when content contains Chinese String in SQL CLI  
as following: 
{code:java}
Flink SQL> select * from user_ino;
+-----+----------------------+--------+----------------------+
| +/- |            user_name | is_new |              content |
+-----+----------------------+--------+----------------------+
|   + |                  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.


> 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
>            Priority: Minor
>             Fix For: 1.11.0
>
>
>  
> 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)

Reply via email to