<?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: Accessing Hive Metadata in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/27276#M8059</link>
    <description>&lt;P&gt;COLUMNS_OLD is a deprecated table where columns used to be stored. Hive might have some information there for some reason. You can use both COLUMNS_OLD or COLUMNS_V2 when searching for your column.&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2015 16:37:32 GMT</pubDate>
    <dc:creator>sergio.pena</dc:creator>
    <dc:date>2015-05-11T16:37:32Z</dc:date>
    <item>
      <title>Accessing Hive Metadata</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/26836#M8052</link>
      <description>&lt;P&gt;It is always handy to search tables and column in metadata. How do I search for tables in Hive based on th column name?&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I know we can do via metadata. I logged into MySQL metadata but did not find a way to search.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I saw a way to search a column name but could not find a way to relate to table name.&lt;BR /&gt;select COLUMN_NAME from COLUMNS_V2 where column_name regexp 'repo' ;&lt;BR /&gt;I also searched on TBLS table, but there is no column name.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Any help?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:27:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/26836#M8052</guid>
      <dc:creator>rio</dc:creator>
      <dc:date>2022-09-16T09:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Hive Metadata</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/26926#M8053</link>
      <description>&lt;P&gt;Here's the query you can use on the metastore:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select TBL_NAME, COLUMN_NAME, TYPE_NAME from TBLS left join COLUMNS_V2 on CD_ID = TBL_ID where COLUMN_NAME like 'column';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where 'column' is the column name you're looking for.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 15:51:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/26926#M8053</guid>
      <dc:creator>sergio.pena</dc:creator>
      <dc:date>2015-05-01T15:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Hive Metadata</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/27078#M8054</link>
      <description>&lt;P&gt;Seems like not all columns are indexed, how do I index the columns?&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 19:11:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/27078#M8054</guid>
      <dc:creator>rio</dc:creator>
      <dc:date>2015-05-06T19:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Hive Metadata</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/27079#M8055</link>
      <description>&lt;P&gt;You can use the following statment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ALTER TABLE TABLE_NAME ADD INDEX (COLUMN_NAME);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the query slow on your system?&lt;/P&gt;&lt;P&gt;Could you paste the the output of the 'EXPLAIN SELECT ...' of your query?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 19:43:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/27079#M8055</guid>
      <dc:creator>sergio.pena</dc:creator>
      <dc:date>2015-05-06T19:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Hive Metadata</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/27083#M8056</link>
      <description>&lt;P&gt;Query comes out fast. Not all hive columns / tables are displayed. I know there is a table for a column idMfg but when I search it does not display.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will creating index help here?&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 20:51:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/27083#M8056</guid>
      <dc:creator>rio</dc:creator>
      <dc:date>2015-05-06T20:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Hive Metadata</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/27114#M8057</link>
      <description>&lt;P&gt;Indexing won't work to connect two tables. This is used for speed performance when searching data on tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was taking a look at the tables on the metastore, and there are tables like&amp;nbsp;SKEWED_COL_NAMES,&amp;nbsp;PART_COL_PRIVS, etc. Those contain the column name as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is the table you're looking for configured? Is it partitioned? Is it skewed?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 15:14:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/27114#M8057</guid>
      <dc:creator>sergio.pena</dc:creator>
      <dc:date>2015-05-07T15:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Hive Metadata</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/27130#M8058</link>
      <description>&lt;P&gt;This query is giving me output. what is difference between COLUMNS_OLD and COLUMNS_V2?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select TBL_NAME, COLUMN_NAME, TYPE_NAME from TBLS t left join COLUMNS_OLD c on c.SD_ID = t.SD_ID where COLUMN_NAME regexp 'idorder';&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 18:54:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/27130#M8058</guid>
      <dc:creator>rio</dc:creator>
      <dc:date>2015-05-07T18:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Hive Metadata</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/27276#M8059</link>
      <description>&lt;P&gt;COLUMNS_OLD is a deprecated table where columns used to be stored. Hive might have some information there for some reason. You can use both COLUMNS_OLD or COLUMNS_V2 when searching for your column.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2015 16:37:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Accessing-Hive-Metadata/m-p/27276#M8059</guid>
      <dc:creator>sergio.pena</dc:creator>
      <dc:date>2015-05-11T16:37:32Z</dc:date>
    </item>
  </channel>
</rss>

