[ 
https://issues.apache.org/jira/browse/HIVE-14146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15362446#comment-15362446
 ] 

niklaus xiao commented on HIVE-14146:
-------------------------------------

You can try this:
{code}
desc pretty commtest;
+--------------------------------------------------+------------+----------+
|                     col_name                     | data_type  | comment  |
+--------------------------------------------------+------------+----------+--+
| col_name     data_type     comment               | NULL       | NULL     |
|                                                  | NULL       | NULL     |
| first_nm     string        Indicates First name  | NULL       | NULL     |
|                            of an individual      | NULL       | NULL     |
+--------------------------------------------------+------------+----------+
{code}

> Column comments with "\n" character "corrupts" table metadata
> -------------------------------------------------------------
>
>                 Key: HIVE-14146
>                 URL: https://issues.apache.org/jira/browse/HIVE-14146
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>    Affects Versions: 2.2.0
>            Reporter: Peter Vary
>            Assignee: Peter Vary
>
> Create a table with the following(noting the \n in the COMMENT):
> {noformat}
> CREATE TABLE commtest(first_nm string COMMENT 'Indicates First name\nof an 
> individual’);
> {noformat}
> Describe shows that now the metadata is messed up:
> {noformat}
> beeline> describe commtest;
> +-------------------+------------+-----------------------+--+
> |     col_name      | data_type  |        comment        |
> +-------------------+------------+-----------------------+--+
> | first_nm             | string       | Indicates First name  |
> | of an individual  | NULL       | NULL                  |
> +-------------------+------------+-----------------------+--+
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to