<?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 CDS table and CD_ID in Metastore DB in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/CDS-table-and-CD-ID-in-Metastore-DB/m-p/325751#M229714</link>
    <description>&lt;P&gt;I'm trying to read tables and columns and columns' type from Metastore DB. I checked "COLUMN_V2" table and it doesn't have TBL_ID, but it has CD_ID ! Then,&amp;nbsp;I released that there is a table named CDS having one column which is "CD_ID" and the values are as the same as TBL_ID in TBLS table. I want to know if below query using CD_ID is a reliable query or not.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Select tbls.TBL_NAME, cv2.COLUMN_NAME,cv2.TYPE_NAME from TBLS tbls
JOIN COLUMNS_V2 cv2 on tbls.TBL_ID = cv2.CD_ID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I would be grateful if I can know more about below concerns:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. What is the purpose of CDS table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. why TBL_ID was not enough and CD_ID was needed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. What does "CD" stands for?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. Does CD_ID has the same value as TBL_ID all the time? or there are scenarios that they can be different?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 02:38:00 GMT</pubDate>
    <dc:creator>Mas_Jamie</dc:creator>
    <dc:date>2021-09-30T02:38:00Z</dc:date>
    <item>
      <title>CDS table and CD_ID in Metastore DB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDS-table-and-CD-ID-in-Metastore-DB/m-p/325751#M229714</link>
      <description>&lt;P&gt;I'm trying to read tables and columns and columns' type from Metastore DB. I checked "COLUMN_V2" table and it doesn't have TBL_ID, but it has CD_ID ! Then,&amp;nbsp;I released that there is a table named CDS having one column which is "CD_ID" and the values are as the same as TBL_ID in TBLS table. I want to know if below query using CD_ID is a reliable query or not.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Select tbls.TBL_NAME, cv2.COLUMN_NAME,cv2.TYPE_NAME from TBLS tbls
JOIN COLUMNS_V2 cv2 on tbls.TBL_ID = cv2.CD_ID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I would be grateful if I can know more about below concerns:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. What is the purpose of CDS table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. why TBL_ID was not enough and CD_ID was needed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. What does "CD" stands for?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. Does CD_ID has the same value as TBL_ID all the time? or there are scenarios that they can be different?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 02:38:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDS-table-and-CD-ID-in-Metastore-DB/m-p/325751#M229714</guid>
      <dc:creator>Mas_Jamie</dc:creator>
      <dc:date>2021-09-30T02:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: CDS table and CD_ID in Metastore DB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDS-table-and-CD-ID-in-Metastore-DB/m-p/325782#M229717</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92380"&gt;@Mas_Jamie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CDS table is for Column Descriptors. CD stands for column descriptor. It is used to decouple columns from tables/partitions to reduce storage needs. tables/partitions are almost 1-1 map to these descriptors… but a table may have more than one Column Descriptor in the case of schema evolution!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 06:52:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDS-table-and-CD-ID-in-Metastore-DB/m-p/325782#M229717</guid>
      <dc:creator>asish</dc:creator>
      <dc:date>2021-09-30T06:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: CDS table and CD_ID in Metastore DB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDS-table-and-CD-ID-in-Metastore-DB/m-p/325790#M229720</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/71090"&gt;@asish&lt;/a&gt;&amp;nbsp;, your explanation was really helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any books/webpage/article that I can read to know more about Metastore and Hive metadata?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 07:14:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDS-table-and-CD-ID-in-Metastore-DB/m-p/325790#M229720</guid>
      <dc:creator>Mas_Jamie</dc:creator>
      <dc:date>2021-09-30T07:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: CDS table and CD_ID in Metastore DB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDS-table-and-CD-ID-in-Metastore-DB/m-p/325799#M229729</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92380"&gt;@Mas_Jamie&lt;/a&gt;&amp;nbsp;apologies. Unfortunately we dont have the document &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 08:07:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDS-table-and-CD-ID-in-Metastore-DB/m-p/325799#M229729</guid>
      <dc:creator>asish</dc:creator>
      <dc:date>2021-09-30T08:07:27Z</dc:date>
    </item>
  </channel>
</rss>

