Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-3914

use Chinese in hive column comment and table comment

    Details

    • Type: Bug
    • Status: Open
    • Priority: 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.

        Attachments

        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

              People

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

                Dates

                • Created:
                  Updated: