Hive
  1. Hive
  2. HIVE-3914

use Chinese in hive column comment and table comment

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.9.0, 0.10.0
    • Fix Version/s: None
    • Component/s: Query Processor
    • Labels:
      None
    • Environment:

      hive0.11.0
      hive0.9.0

      Description

      use Chinese in hive column comment and table comment,and the metadata in Mysql is regular,the charset of 'COMMENT' column in 'columns_v2' table and 'PARAM_VALUE' column in 'table_params' table both are 'utf8'.
      When I exec 'select * from columns_v2' with mysql client,the Chinese comments display normally. But when I execute 'describe table' with hive cli,the Chinese words are garbled.

      1. HIVE-3914-1.patch
        3 kB
        caofangkun
      2. HIVE-3914-2.patch
        4 kB
        caofangkun
      3. TextMetaDataFormatter.class
        14 kB
        wangpeiya
      4. TextMetaDataFormatter-0.11.java
        17 kB
        wangpeiya

        Issue Links

          Activity

          Hide
          caofangkun added a comment -

          use “outStream.writeUTF” instead of “ outStream.writeBytes ”

          Show
          caofangkun added a comment - use “outStream.writeUTF” instead of “ outStream.writeBytes ”
          Hide
          huang wei added a comment -

          In Hive 0.9.0,the file 'DDLtask.java' is not like your Attachments.use “outStream.writeUTF” instead of “ outStream.writeBytes ” can't solve it.How do you solve it?

          Show
          huang wei added a comment - In Hive 0.9.0,the file 'DDLtask.java' is not like your Attachments.use “outStream.writeUTF” instead of “ outStream.writeBytes ” can't solve it.How do you solve it?
          Hide
          caofangkun added a comment -

          for hive 0.9.0

          Show
          caofangkun added a comment - for hive 0.9.0
          Hide
          wangpeiya added a comment -

          for hive0.11.0:
          TextMetaDataFormatter-0.11.java

          Show
          wangpeiya added a comment - for hive0.11.0: TextMetaDataFormatter-0.11.java
          Hide
          Navis added a comment -

          Looks like duplicate of HIVE-2905. Could you check that?

          Show
          Navis added a comment - Looks like duplicate of HIVE-2905 . Could you check that?
          Hide
          caofangkun added a comment -

          duplicate of HIVE-2905.
          thanks Navis

          Show
          caofangkun added a comment - duplicate of HIVE-2905 . thanks Navis

            People

            • Assignee:
              Unassigned
              Reporter:
              caofangkun
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Development