<?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 Last file in S3 folder using autoloader in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/last-file-in-s3-folder-using-autoloader/m-p/80750#M36148</link>
    <description>&lt;P&gt;Nowadays we already use the autoloader&amp;nbsp;with checkpoint location, but I still wanted to know if it is possible to read only the last updated file within a folder. I know it somewhat loses the purpose of checkpoint locatio&lt;BR /&gt;Another question is it possible to obtain any information if the autoloader returns an empty dataframe without having to run a count on the dataframe? Some parameter of how many files or mb were read.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2024 17:38:59 GMT</pubDate>
    <dc:creator>Miguel_Salas</dc:creator>
    <dc:date>2024-07-26T17:38:59Z</dc:date>
    <item>
      <title>Last file in S3 folder using autoloader</title>
      <link>https://community.databricks.com/t5/data-engineering/last-file-in-s3-folder-using-autoloader/m-p/80750#M36148</link>
      <description>&lt;P&gt;Nowadays we already use the autoloader&amp;nbsp;with checkpoint location, but I still wanted to know if it is possible to read only the last updated file within a folder. I know it somewhat loses the purpose of checkpoint locatio&lt;BR /&gt;Another question is it possible to obtain any information if the autoloader returns an empty dataframe without having to run a count on the dataframe? Some parameter of how many files or mb were read.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 17:38:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/last-file-in-s3-folder-using-autoloader/m-p/80750#M36148</guid>
      <dc:creator>Miguel_Salas</dc:creator>
      <dc:date>2024-07-26T17:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Last file in S3 folder using autoloader</title>
      <link>https://community.databricks.com/t5/data-engineering/last-file-in-s3-folder-using-autoloader/m-p/101287#M40617</link>
      <description>&lt;P&gt;Auto loader's scope is limited to incrementally loading files from storage, and there is no such functionality to just load the latest file from a group of files, you'd likely want to have this kind of "last updated" logic in a different layer or in flight by using stateful processing or some other foreachBatch logic.&lt;/P&gt;
&lt;P&gt;For autoloader metrics, please look &lt;A href="https://docs.databricks.com/en/ingestion/cloud-object-storage/auto-loader/production.html#listen-to-stream-updates" target="_self"&gt;here&lt;/A&gt;. The gist of it is that after each batch, metrics are emitted including the number of records, time spent processing, and backlog.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 21:05:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/last-file-in-s3-folder-using-autoloader/m-p/101287#M40617</guid>
      <dc:creator>cgrant</dc:creator>
      <dc:date>2024-12-06T21:05:32Z</dc:date>
    </item>
  </channel>
</rss>

