[jira] [Created] (FLINK-16464) result-mode tableau may shift when content contains Chinese String in SQL CLI

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-16464) result-mode tableau may shift when content contains Chinese String in SQL CLI

Shang Yuanchun (Jira)
Leonard Xu created FLINK-16464:
----------------------------------

             Summary: 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
             Fix For: 1.11.0


 

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.



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