<?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 total number of files of a Delta table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/get-total-number-of-files-of-a-delta-table/m-p/157354#M54537</link>
    <description>&lt;P&gt;The best way to get this is executing the following statement:&lt;/P&gt;&lt;P&gt;ANALYZE TABLE [table_name] COMPUTE STORAGE METRICS;&lt;/P&gt;&lt;P&gt;Applies to:&amp;nbsp;&lt;SPAN&gt;Databricks Runtime&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;18.0 and above&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2026 19:58:56 GMT</pubDate>
    <dc:creator>gmiguel</dc:creator>
    <dc:date>2026-05-20T19:58:56Z</dc:date>
    <item>
      <title>Get total number of files of a Delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/get-total-number-of-files-of-a-delta-table/m-p/39503#M26998</link>
      <description>&lt;P&gt;I'm looking to know programatically how many files a delta table is made of.&lt;/P&gt;&lt;P&gt;I know I can do&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;%sql&lt;BR /&gt;DESCRIBE&lt;/SPAN&gt; &lt;SPAN&gt;DETAIL my_table&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;But that would only give me the number of files of the current version. I am looking to know the total number of files (basically what I would get If I ran the following command in a terminal in the folder of my table.&lt;/P&gt;&lt;P&gt;&amp;gt; ls *.parquet | wc -l&lt;/P&gt;&lt;P&gt;Is there a way to achieve this ? The end goal is to build a dashboard showing, among other things, the proportion of "old parquet files" compared to the current version for a given table.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Aug 2023 08:41:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-total-number-of-files-of-a-delta-table/m-p/39503#M26998</guid>
      <dc:creator>erigaud</dc:creator>
      <dc:date>2023-08-10T08:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get total number of files of a Delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/get-total-number-of-files-of-a-delta-table/m-p/39527#M27004</link>
      <description>&lt;P&gt;Yes I think that solution is good, thank you !&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 15:55:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-total-number-of-files-of-a-delta-table/m-p/39527#M27004</guid>
      <dc:creator>erigaud</dc:creator>
      <dc:date>2023-08-10T15:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get total number of files of a Delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/get-total-number-of-files-of-a-delta-table/m-p/82182#M36546</link>
      <description>&lt;P&gt;What was the solution?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 11:30:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-total-number-of-files-of-a-delta-table/m-p/82182#M36546</guid>
      <dc:creator>ADavid</dc:creator>
      <dc:date>2024-08-07T11:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get total number of files of a Delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/get-total-number-of-files-of-a-delta-table/m-p/157354#M54537</link>
      <description>&lt;P&gt;The best way to get this is executing the following statement:&lt;/P&gt;&lt;P&gt;ANALYZE TABLE [table_name] COMPUTE STORAGE METRICS;&lt;/P&gt;&lt;P&gt;Applies to:&amp;nbsp;&lt;SPAN&gt;Databricks Runtime&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;18.0 and above&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2026 19:58:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-total-number-of-files-of-a-delta-table/m-p/157354#M54537</guid>
      <dc:creator>gmiguel</dc:creator>
      <dc:date>2026-05-20T19:58:56Z</dc:date>
    </item>
  </channel>
</rss>

