Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-16464

result-mode tableau may shift when content contains Chinese String in SQL CLI

    XMLWordPrintableJSON

Details

    Description

       

      result-mode tableau may shift when column content contains Chinese String in SQL CLI  as following: 

      Flink SQL> select * from user_ino;
      +-----+----------------------+--------+----------------------+
      | +/- |            user_name | is_new |          content_col |
      +-----+----------------------+--------+----------------------+
      |   + |                  sam |   true |              content |
      |   + |                   中文名 |  false |              content |
      |   + |              leonard |   true |              content |
      

      We can calculate column widths with UDTF-8 format bytes not length of string to avoid this.

      Attachments

        Issue Links

          Activity

            People

              leonard Leonard Xu
              leonard Leonard Xu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m