You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "tartarus (JIRA)" <ji...@apache.org> on 2018/03/01 03:03:00 UTC

[jira] [Updated] (HIVE-18811) Fix desc table, column comments are not displayed

     [ https://issues.apache.org/jira/browse/HIVE-18811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

tartarus updated HIVE-18811:
----------------------------
    Description: 
when column comment contain \t 

eg: CREATE TABLE `zhangmang_test`(`name` string COMMENT 'name{color:#ff0000}\t{color}zm');

then execute : {color:#ff0000}desc zhangmang_test {color}

{color:#ff0000}{color:#333333}return :{color} name                string              name{color}

because \t is the separator, so we should translate it

  was:
when column comment contain \t 

eg: CREATE TABLE `zhangmang_test`(`name` string COMMENT 'name{color:#FF0000}\t{color}zm');

then execute : {color:#FF0000}desc zhangmang_test {color}

{color:#FF0000}{color:#333333}return : name                string              name{color}
{color}

because \t is the separator, so we should translate it


> Fix desc table, column comments are not displayed
> -------------------------------------------------
>
>                 Key: HIVE-18811
>                 URL: https://issues.apache.org/jira/browse/HIVE-18811
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 1.2.1, 2.3.2
>         Environment: CentOS 6.5
> Hive-1.2.1
> Hive-3.0.0
>            Reporter: tartarus
>            Assignee: tartarus
>            Priority: Major
>              Labels: patch
>             Fix For: 3.0.0
>
>         Attachments: HIVE_18811.patch
>
>
> when column comment contain \t 
> eg: CREATE TABLE `zhangmang_test`(`name` string COMMENT 'name{color:#ff0000}\t{color}zm');
> then execute : {color:#ff0000}desc zhangmang_test {color}
> {color:#ff0000}{color:#333333}return :{color} name                string              name{color}
> because \t is the separator, so we should translate it



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)