<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Add comments to columns in an impala table in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/91562#M65732</link>
    <description>&lt;P&gt;Hi, here is a question.&lt;/P&gt;&lt;P&gt;How do I alter and remove a table comment?&lt;/P&gt;&lt;P&gt;THANKS.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 03:00:13 GMT</pubDate>
    <dc:creator>urmfriend71</dc:creator>
    <dc:date>2019-06-13T03:00:13Z</dc:date>
    <item>
      <title>Add comments to columns in an impala table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/58202#M65729</link>
      <description>&lt;P&gt;How do I add comments to a column in an impala table for specific columns after creating it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:00:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/58202#M65729</guid>
      <dc:creator>gimp077</dc:creator>
      <dc:date>2022-09-16T12:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add comments to columns in an impala table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/58226#M65730</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20536"&gt;@gimp077&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't get a chance to test it, but just try this, it may help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Go to Hue -&amp;gt; Metastore manager -&amp;gt; db.table -&amp;gt; property -&amp;gt; update comment&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 02:39:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/58226#M65730</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2017-07-31T02:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add comments to columns in an impala table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/58344#M65731</link>
      <description>&lt;PRE&gt;ALTER&amp;nbsp;TABLE&amp;nbsp;test CHANGE&amp;nbsp;{columname}&amp;nbsp;{columnname} {datatype}&amp;nbsp;comment 'test comment';&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;See below test case:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[impala-host:21000] &amp;gt; show create table test;
Query: show create table test
+---------------------------------------------------------------------------------------------------------------------+
| result                                                                                                              |
+---------------------------------------------------------------------------------------------------------------------+
| CREATE TABLE default.test (                                                                                         |
|   a INT,                                                                                                            |
|   b INT                                                                                                             |
| )                                                                                                                   |
| WITH SERDEPROPERTIES ('serialization.format'='1')                                                                   |
| STORED AS TEXTFILE                                                                                                  |
| LOCATION 'hdfs://namenode-host:8020/user/hive/warehouse/test'                                 |
| TBLPROPERTIES ('numFiles'='3', 'COLUMN_STATS_ACCURATE'='true', 'numRows'='9', 'totalSize'='40', 'rawDataSize'='31') |
+---------------------------------------------------------------------------------------------------------------------+
Fetched 1 row(s) in 7.42s
[impala-host:21000] &amp;gt; alter table test change a a int comment 'test comment';
Query: alter table test change a a int comment 'test comment'

Fetched 0 row(s) in 0.66s
[impala-host:21000] &amp;gt; show create table test;
Query: show create table test
+---------------------------------------------------------------------------------------------------------------------+
| result                                                                                                              |
+---------------------------------------------------------------------------------------------------------------------+
| CREATE TABLE default.test (                                                                                         |
|   a INT COMMENT 'test comment',                                                                                     |
|   b INT                                                                                                             |
| )                                                                                                                   |
| WITH SERDEPROPERTIES ('serialization.format'='1')                                                                   |
| STORED AS TEXTFILE                                                                                                  |
| LOCATION 'hdfs://namenode-host:8020/user/hive/warehouse/test'                                 |
| TBLPROPERTIES ('numFiles'='3', 'COLUMN_STATS_ACCURATE'='true', 'numRows'='9', 'totalSize'='40', 'rawDataSize'='31') |
+---------------------------------------------------------------------------------------------------------------------+&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Aug 2017 11:38:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/58344#M65731</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2017-08-02T11:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add comments to columns in an impala table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/91562#M65732</link>
      <description>&lt;P&gt;Hi, here is a question.&lt;/P&gt;&lt;P&gt;How do I alter and remove a table comment?&lt;/P&gt;&lt;P&gt;THANKS.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 03:00:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/91562#M65732</guid>
      <dc:creator>urmfriend71</dc:creator>
      <dc:date>2019-06-13T03:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add comments to columns in an impala table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/91563#M65733</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You could just set the comment as empty string like "", I am not sure if you can remove the field completely.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Eric</description>
      <pubDate>Thu, 13 Jun 2019 05:09:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/91563#M65733</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2019-06-13T05:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add comments to columns in an impala table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/91578#M65734</link>
      <description>&lt;DIV class="lia-message-body lia-component-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Thanks for your quick reply.&lt;/P&gt;&lt;P&gt;What I wanna know is how do I alter and remove a "table level" comment.&lt;/P&gt;&lt;P&gt;I cannot find an example or document on the&lt;SPAN class="st"&gt; Internet.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jun 2019 09:24:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/91578#M65734</guid>
      <dc:creator>urmfriend71</dc:creator>
      <dc:date>2019-06-13T09:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add comments to columns in an impala table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/277555#M65735</link>
      <description>&lt;P&gt;In the docs:&lt;/P&gt;&lt;P&gt;&lt;A href="https://impala.apache.org/docs/build/html/topics/impala_comment.html" target="_blank"&gt;https://impala.apache.org/docs/build/html/topics/impala_comment.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set it to NULL.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 20:49:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/277555#M65735</guid>
      <dc:creator>grahn</dc:creator>
      <dc:date>2019-09-17T20:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add comments to columns in an impala table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/277598#M65736</link>
      <description>You can do alter like I mentioned before:&lt;BR /&gt;&lt;BR /&gt;ALTER TABLE test CHANGE col1 col1 int COMMENT 'test comment';&lt;BR /&gt;&lt;BR /&gt;But I do not think you can remove it, but rather to just empty it.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Eric</description>
      <pubDate>Wed, 18 Sep 2019 07:01:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-comments-to-columns-in-an-impala-table/m-p/277598#M65736</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2019-09-18T07:01:53Z</dc:date>
    </item>
  </channel>
</rss>

