From issues-return-23259-apmail-hive-issues-archive=hive.apache.org@hive.apache.org Tue Nov 3 20:37:27 2015 Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB86318984 for ; Tue, 3 Nov 2015 20:37:27 +0000 (UTC) Received: (qmail 26871 invoked by uid 500); 3 Nov 2015 20:37:27 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 26849 invoked by uid 500); 3 Nov 2015 20:37:27 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 26838 invoked by uid 99); 3 Nov 2015 20:37:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Nov 2015 20:37:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A8EE32C14E1 for ; Tue, 3 Nov 2015 20:37:27 +0000 (UTC) Date: Tue, 3 Nov 2015 20:37:27 +0000 (UTC) From: "Yongzhi Chen (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-12182) ALTER TABLE PARTITION COLUMN does not set partition column comments MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-12182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14988071#comment-14988071 ] Yongzhi Chen commented on HIVE-12182: ------------------------------------- I think it is useful to handle the special charactors which need escape, for example: {noformat} create table tf (val int comment 'it\'s a dog'); describe tf; +-----------+------------+-------------+--+ | col_name | data_type | comment | +-----------+------------+-------------+--+ | val | int | it's a dog | +-----------+------------+-------------+--+ {noformat} > 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 > Attachments: 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)