Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10299

Impala-shell hangs in printing partial UTF-8 characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 4.0.0
    • Impala 4.0.0
    • Clients
    • None
    • ghx-label-5

    Description

      Saw the hanging when playing around with Chinese characters:

      [localhost:21050] default> select substr("引擎", 1, 3);
      Query: select substr("引擎", 1, 3)
      Query submitted at: 2020-10-28 11:54:26 (Coordinator: http://quanlong-OptiPlex-BJ:25000)
      Query progress can be monitored at: http://quanlong-OptiPlex-BJ:25000/query_plan?query_id=464f44d405bb16a1:5b41e00e00000000
      +----------------------+
      | substr('引擎', 1, 3) |
      +----------------------+
      | 引                   |
      +----------------------+
      Fetched 1 row(s) in 0.13s
      [localhost:21050] default> select substr("引擎", 1, 2);
      Query: select substr("引擎", 1, 2)
      Query submitted at: 2020-10-28 11:54:32 (Coordinator: http://quanlong-OptiPlex-BJ:25000)
      Query progress can be monitored at: http://quanlong-OptiPlex-BJ:25000/query_plan?query_id=d048231be08f29b4:860c959500000000
      Caught exception 'utf8' codec can't decode bytes in position 0-1: unexpected end of data, type=<type 'exceptions.UnicodeDecodeError'> in FetchResults.
      
      

      This seems not a problem in previous versions. E.g. see the examples in the description of IMPALA-9662.

      Attachments

        Issue Links

          Activity

            People

              stigahuang Quanlong Huang
              stigahuang Quanlong Huang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: