<?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: How to detect gap in filenames (Autoloader) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-detect-gap-in-filenames-autoloader/m-p/98617#M39762</link>
    <description>&lt;P&gt;It doesn't seem like this can be done through the DLT autoloader. Particularly you require an automatic stop without manual intervention. You can write a custom Structured Streaming job and use a sequence-checking logic, and&amp;nbsp;&lt;CODE&gt;foreachBatch&lt;/CODE&gt; to process incoming files and detect missing IDs.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2024 06:43:17 GMT</pubDate>
    <dc:creator>SparkJun</dc:creator>
    <dc:date>2024-11-13T06:43:17Z</dc:date>
    <item>
      <title>How to detect gap in filenames (Autoloader)</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-detect-gap-in-filenames-autoloader/m-p/91068#M38072</link>
      <description>&lt;P&gt;So my files arrive at the cloud storage and I have configured an autoloader to read these files.&lt;/P&gt;&lt;P&gt;The files have a monotonically increasing id in their name.&lt;/P&gt;&lt;P&gt;How can I detect a gap and stop the DLT as soon as there is a gap?&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;Autoloader finds file1, ingests&lt;/P&gt;&lt;P&gt;Autoloader finds file2, ingests&lt;/P&gt;&lt;P&gt;Autoloader finds file3, ingests&lt;/P&gt;&lt;P&gt;Autoloader finds file5 -&amp;gt; file4 is missing: STOP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible using DLT? Or should I go for a streaming job?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 13:55:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-detect-gap-in-filenames-autoloader/m-p/91068#M38072</guid>
      <dc:creator>L1000</dc:creator>
      <dc:date>2024-09-19T13:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect gap in filenames (Autoloader)</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-detect-gap-in-filenames-autoloader/m-p/98617#M39762</link>
      <description>&lt;P&gt;It doesn't seem like this can be done through the DLT autoloader. Particularly you require an automatic stop without manual intervention. You can write a custom Structured Streaming job and use a sequence-checking logic, and&amp;nbsp;&lt;CODE&gt;foreachBatch&lt;/CODE&gt; to process incoming files and detect missing IDs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 06:43:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-detect-gap-in-filenames-autoloader/m-p/98617#M39762</guid>
      <dc:creator>SparkJun</dc:creator>
      <dc:date>2024-11-13T06:43:17Z</dc:date>
    </item>
  </channel>
</rss>

