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

Lefty Leverenz commented on HIVE-12182:
---------------------------------------

Did this make any syntax changes?  If so, it needs a TODOC1.3 label and a 
release note.

Here's where the documentation should go:

* [DDL -- Alter Column -- ChangeColumnName/Type/Position/Comment | 
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-ChangeColumnName/Type/Position/Comment]

> ALTER TABLE PARTITION COLUMN does not set partition column comments
> -------------------------------------------------------------------
>
>                 Key: HIVE-12182
>                 URL: https://issues.apache.org/jira/browse/HIVE-12182
>             Project: Hive
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.2.1
>            Reporter: Lenni Kuff
>            Assignee: Naveen Gangam
>             Fix For: 1.3.0, 2.0.0
>
>         Attachments: HIVE-12182-branch1.txt, HIVE-12182.2.patch, 
> HIVE-12182.3.patch, HIVE-12182.patch
>
>
> ALTER TABLE PARTITION COLUMN does not set partition column comments. The 
> syntax is accepted, but the COMMENT for the column is ignored.
> {code}
> 0: jdbc:hive2://localhost:10000/default> create table part_test(i int comment 
> 'HELLO') partitioned by (j int comment 'WORLD');
> No rows affected (0.104 seconds)
> 0: jdbc:hive2://localhost:10000/default> describe part_test;
> +--------------------------+-----------------------+-----------------------+--+
> |         col_name         |       data_type       |        comment        |
> +--------------------------+-----------------------+-----------------------+--+
> | i                        | int                   | HELLO                 |
> | j                        | int                   | WORLD                 |
> |                          | NULL                  | NULL                  |
> | # Partition Information  | NULL                  | NULL                  |
> | # col_name               | data_type             | comment               |
> |                          | NULL                  | NULL                  |
> | j                        | int                   | WORLD                 |
> +--------------------------+-----------------------+-----------------------+--+
> 7 rows selected (0.109 seconds)
> 0: jdbc:hive2://localhost:10000/default> alter table part_test partition 
> column (j int comment 'WIDE');
> No rows affected (0.121 seconds)
> 0: jdbc:hive2://localhost:10000/default> describe part_test;
> +--------------------------+-----------------------+-----------------------+--+
> |         col_name         |       data_type       |        comment        |
> +--------------------------+-----------------------+-----------------------+--+
> | i                        | int                   | HELLO                 |
> | j                        | int                   |                       |
> |                          | NULL                  | NULL                  |
> | # Partition Information  | NULL                  | NULL                  |
> | # col_name               | data_type             | comment               |
> |                          | NULL                  | NULL                  |
> | j                        | int                   |                       |
> +--------------------------+-----------------------+-----------------------+--+
> 7 rows selected (0.108 seconds)
> {code}



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

Reply via email to