<?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>topic Re: Get metadata information about Delta Table using only SQL Editor (Query)? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/get-metadata-information-about-delta-table-using-only-sql-editor/m-p/72145#M34503</link>
    <description>&lt;P&gt;Hi Heron,&lt;BR /&gt;&lt;BR /&gt;The output of the `DESCRIBE DETAIL table_name` includes the table format, size in bytes, location, and other information that sounds like what you're looking for. The only one I'm unsure about is the 'table type'. Here's the schema of the output of that command:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/delta/table-details.html" target="_blank"&gt;https://docs.databricks.com/en/delta/table-details.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;/P&gt;</description>
    <pubDate>Sat, 08 Jun 2024 20:12:24 GMT</pubDate>
    <dc:creator>brockb</dc:creator>
    <dc:date>2024-06-08T20:12:24Z</dc:date>
    <item>
      <title>Get metadata information about Delta Table using only SQL Editor (Query)?</title>
      <link>https://community.databricks.com/t5/data-engineering/get-metadata-information-about-delta-table-using-only-sql-editor/m-p/72140#M34502</link>
      <description>&lt;P&gt;I'm trying to obtain the basic information and the &lt;STRONG&gt;storage location&lt;/STRONG&gt; of the delta table, but without success.&lt;BR /&gt;Is there a way to get: storage location, type, catalog, schema, table name using &lt;STRONG&gt;SQL Editor through a query&lt;/STRONG&gt;?&lt;BR /&gt;&lt;STRONG&gt;I can get&lt;/STRONG&gt; the basic information (&lt;STRONG&gt;catalog, schema, table name&lt;/STRONG&gt;) through the information_schema.tables table, &lt;STRONG&gt;but I couldn't find the rest (storage location, type).&lt;/STRONG&gt;&lt;BR /&gt;I did a search and the AI-ChatGPT ​​suggested the query below but it's not working.&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;t.table_catalog, t.table_schema, t.table_name, t.table_type,&lt;BR /&gt;detail.sizeInBytes, detail.location, detail.format&lt;BR /&gt;FROM&lt;BR /&gt;information_schema.tables t,&lt;BR /&gt;LATERAL (DESCRIBE DETAIL delta.`${t.table_catalog}.${t.table_schema}.${t.table_name}`) detail&lt;BR /&gt;WHERE&lt;BR /&gt;t.table_type = 'EXTERNAL' AND detail.format = 'delta'&lt;/P&gt;&lt;P&gt;Thank you very much if anyone can help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2024 17:12:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-metadata-information-about-delta-table-using-only-sql-editor/m-p/72140#M34502</guid>
      <dc:creator>heron</dc:creator>
      <dc:date>2024-06-08T17:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get metadata information about Delta Table using only SQL Editor (Query)?</title>
      <link>https://community.databricks.com/t5/data-engineering/get-metadata-information-about-delta-table-using-only-sql-editor/m-p/72145#M34503</link>
      <description>&lt;P&gt;Hi Heron,&lt;BR /&gt;&lt;BR /&gt;The output of the `DESCRIBE DETAIL table_name` includes the table format, size in bytes, location, and other information that sounds like what you're looking for. The only one I'm unsure about is the 'table type'. Here's the schema of the output of that command:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/delta/table-details.html" target="_blank"&gt;https://docs.databricks.com/en/delta/table-details.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2024 20:12:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-metadata-information-about-delta-table-using-only-sql-editor/m-p/72145#M34503</guid>
      <dc:creator>brockb</dc:creator>
      <dc:date>2024-06-08T20:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get metadata information about Delta Table using only SQL Editor (Query)?</title>
      <link>https://community.databricks.com/t5/data-engineering/get-metadata-information-about-delta-table-using-only-sql-editor/m-p/72401#M34562</link>
      <description>&lt;P&gt;I believe what you're looking for is &lt;STRONG&gt;DESCRIBE EXTENDED &amp;lt;table_name&amp;gt;&lt;/STRONG&gt;.&lt;BR /&gt;This returns both delta storage location aswell as detailed table information such as type, table properties, catalog, schema, etc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 18:40:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-metadata-information-about-delta-table-using-only-sql-editor/m-p/72401#M34562</guid>
      <dc:creator>jacovangelder</dc:creator>
      <dc:date>2024-06-11T18:40:39Z</dc:date>
    </item>
  </channel>
</rss>

