<?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 reset a streaming checkpoint without reprocessing historical data? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-reset-a-streaming-checkpoint-without-reprocessing/m-p/177997#M57446</link>
    <description>&lt;DIV&gt;&lt;SPAN&gt;The safest approach is to restart from the last successfully processed source offset while preserving the existing target Delta table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Deleting a checkpoint removes both processing progress and streaming state, so I would avoid doing this without a recovery plan.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;1. Identify the last successfully processed offset&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The recovery strategy depends on the streaming source:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Delta Lake: Use &lt;/SPAN&gt;&lt;SPAN&gt;startingVersion&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Kafka: Use &lt;/SPAN&gt;&lt;SPAN&gt;startingOffsets&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Auto Loader: Consider &lt;/SPAN&gt;&lt;SPAN&gt;modifiedAfter&lt;/SPAN&gt;&lt;SPAN&gt; with a verified file modification timestamp and reconciliation.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;2. Restart using a new checkpoint&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example, if the target contains all records through source Delta version 150, restart from version 151.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;df = (
    spark.readStream
    .format("delta")
    .option("startingVersion", 151)
    .table("bronze.orders")
)&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;The starting version must still be available in the source table history. Also, &lt;/SPAN&gt;&lt;SPAN&gt;startingVersion&lt;/SPAN&gt;&lt;SPAN&gt; is inclusive.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;3. Prevent duplicate records using idempotent MERGE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;from delta.tables import DeltaTable

def upsert(batch_df, batch_id):
    target = DeltaTable.forName(
        spark, "silver.orders"
    )

    (target.alias("t")
        .merge(
            batch_df.alias("s"),
            "t.order_id = s.order_id"
        )
        .whenNotMatchedInsertAll()
        .execute()
    )

query = (
    df.writeStream
    .foreachBatch(upsert)
    .option("checkpointLocation", new_checkpoint_path)
    .start()
)&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;This example assumes immutable orders with unique, non-null order IDs. For mutable records, implement conditional updates and deterministic source deduplication.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;4. Consider stateful transformations&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the pipeline uses window aggregations, watermarks or stream-stream joins, resetting the checkpoint also removes accumulated state. Historical data may need to be replayed to reconstruct that state correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My recommendation is to preserve the old checkpoint, verify the last committed source position, create a new checkpoint and use idempotent writes. When the recovery position is uncertain, controlled overlapping replay is generally safer than risking data loss.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you confirm whether your source is Delta Lake, Kafka or Auto Loader? Also, does the pipeline contain any stateful transformations?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Official references:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/structured-streaming/checkpoints?utm_source=chatgpt.com" target="_blank" rel="noopener"&gt;Structured Streaming checkpoints&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/structured-streaming/delta-lake?utm_source=chatgpt.com" target="_blank" rel="noopener"&gt;Delta Lake streaming reads and writes&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ldp/recover-streaming?utm_source=chatgpt.com" target="_blank" rel="noopener"&gt;Recover from streaming checkpoint failures&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/structured-streaming/foreach?utm_source=chatgpt.com" target="_blank" rel="noopener"&gt;Idempotent writes using foreachBatch&lt;BR /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 29 Nov 2026 07:41:32 GMT</pubDate>
    <dc:creator>tajamulkhan</dc:creator>
    <dc:date>2026-11-29T07:41:32Z</dc:date>
    <item>
      <title>How to reset a streaming checkpoint without reprocessing historical data?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-reset-a-streaming-checkpoint-without-reprocessing/m-p/177896#M57409</link>
      <description>&lt;P&gt;&lt;SPAN&gt;What is the safest way to restart a Structured Streaming pipeline with a new checkpoint?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Suppose the pipeline has already processed six months of data, but a change in the streaming logic makes the existing checkpoint incompatible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can we avoid processing all the historical data again? Is there a recommended recovery approach that also prevents duplicate records in the target Delta table?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2026 09:48:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-reset-a-streaming-checkpoint-without-reprocessing/m-p/177896#M57409</guid>
      <dc:creator>angelinak</dc:creator>
      <dc:date>2026-11-28T09:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset a streaming checkpoint without reprocessing historical data?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-reset-a-streaming-checkpoint-without-reprocessing/m-p/177959#M57429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/274870"&gt;@angelinak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A new checkpoint knows nothing about the old one, so tell the source where to start explicitly. Take the last committed position from the old checkpoint and pass it as a starting option: startingVersion for a Delta source, startingOffsets for Kafka, modifiedAfter for Auto Loader. Make the sink idempotent too, so the boundary batch can't create duplicates.&lt;/P&gt;&lt;P&gt;Delta table source:&lt;/P&gt;&lt;P&gt;1. Stop the stream.&lt;/P&gt;&lt;P&gt;2. In the old checkpoint, find the highest batch ID under commits/ and open offsets/&amp;lt;that id&amp;gt;. The last line contains "reservoirVersion": N.&lt;/P&gt;&lt;P&gt;3. Start with a new checkpoint from that version:&lt;/P&gt;&lt;P&gt;(spark.readStream&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;.option("startingVersion", N)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;.table("main.silver.events")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;.writeStream&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;.option("checkpointLocation", "/Volumes/.../_checkpoints/events_v2")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;.toTable("main.gold.events"))&lt;/P&gt;&lt;P&gt;startingVersion and startingTimestamp are only read when a checkpoint is first created, so they're safe to leave in the code afterwards.&lt;/P&gt;&lt;P&gt;Kafka source: copy the per-partition offsets from that same offsets file into startingOffsets as JSON, for example {"topic":{"0":12345,"1":67890}}.&lt;/P&gt;&lt;P&gt;Auto Loader: use .option("modifiedAfter", "&amp;lt;timestamp of the last processed file&amp;gt;"). Don't rely on includeExistingFiles=false, because files that arrived while the stream was stopped would be skipped.&lt;/P&gt;&lt;P&gt;Preventing duplicates in the target: starting at version N can replay part of the last batch, so write with MERGE on the business key inside foreachBatch (or use txnAppId/txnVersion for idempotent appends) instead of a plain append. That way any overlap is a no-op.&lt;/P&gt;&lt;P&gt;Docs: &lt;A href="https://docs.databricks.com/aws/en/structured-streaming/delta-lake#specify-initial-position" target="_blank"&gt;https://docs.databricks.com/aws/en/structured-streaming/delta-lake#specify-initial-position&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2026 19:23:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-reset-a-streaming-checkpoint-without-reprocessing/m-p/177959#M57429</guid>
      <dc:creator>SumeshKashyap</dc:creator>
      <dc:date>2026-11-28T19:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset a streaming checkpoint without reprocessing historical data?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-reset-a-streaming-checkpoint-without-reprocessing/m-p/177962#M57432</link>
      <description>&lt;P&gt;A new checkpoint has no memory of past progress. To avoid a full replay, you set the starting position on the source yourself. Duplicates at the cutover are best handled with an idempotent write (MERGE on a business key), not by trying to land on the exact offset.&lt;/P&gt;&lt;P&gt;If the source is a Delta table, these are the steps I'd follow:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Stop the old query cleanly&lt;/STRONG&gt; and let the last micro-batch commit.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Find the cutover version.&lt;/STRONG&gt; Run DESCRIBE HISTORY on the source and pick the version right after the last one the old stream processed. If you aren't sure, pick a slightly earlier version. Some overlap is fine, but a gap means lost data.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Start the new query&lt;/STRONG&gt; with a new checkpoint location and startingVersion (or startingTimestamp):&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;(spark.readStream
   .option("startingVersion", "12345")   # only honored on a NEW checkpoint
   .table("source_table")
   # ... new logic ...
   .writeStream
   .option("checkpointLocation", "/chk/my_stream_v2")
   .foreachBatch(upsert_to_target)        # MERGE on business key
   .start())&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Make the sink idempotent.&lt;/STRONG&gt; Inside foreachBatch, use MERGE INTO target USING batch ON t.key = s.key. Then the overlapping records update existing rows instead of being appended again. If you use txnAppId/txnVersion for idempotent writes, you need a &lt;STRONG&gt;new&lt;/STRONG&gt; txnAppId. A new checkpoint starts again at batch ID 0, so Delta would skip writes that reuse the old app ID.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Caveats from the docs: these options only apply when a query starts with a new checkpoint and are ignored afterwards. There also must be no incompatible schema change to the source after the version you pick.&lt;/P&gt;&lt;P&gt;Docs: - &lt;A href="https://docs.databricks.com/aws/en/structured-streaming/delta-lake" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/structured-streaming/delta-lake&lt;/A&gt; (startingVersion, idempotent writes) - &lt;A href="https://docs.databricks.com/aws/en/structured-streaming/checkpoints" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/structured-streaming/checkpoints&lt;/A&gt; (which changes need a new checkpoint)&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2026 19:59:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-reset-a-streaming-checkpoint-without-reprocessing/m-p/177962#M57432</guid>
      <dc:creator>arthurfr23</dc:creator>
      <dc:date>2026-11-28T19:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset a streaming checkpoint without reprocessing historical data?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-reset-a-streaming-checkpoint-without-reprocessing/m-p/177997#M57446</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;The safest approach is to restart from the last successfully processed source offset while preserving the existing target Delta table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Deleting a checkpoint removes both processing progress and streaming state, so I would avoid doing this without a recovery plan.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;1. Identify the last successfully processed offset&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The recovery strategy depends on the streaming source:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Delta Lake: Use &lt;/SPAN&gt;&lt;SPAN&gt;startingVersion&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Kafka: Use &lt;/SPAN&gt;&lt;SPAN&gt;startingOffsets&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Auto Loader: Consider &lt;/SPAN&gt;&lt;SPAN&gt;modifiedAfter&lt;/SPAN&gt;&lt;SPAN&gt; with a verified file modification timestamp and reconciliation.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;2. Restart using a new checkpoint&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example, if the target contains all records through source Delta version 150, restart from version 151.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;df = (
    spark.readStream
    .format("delta")
    .option("startingVersion", 151)
    .table("bronze.orders")
)&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;The starting version must still be available in the source table history. Also, &lt;/SPAN&gt;&lt;SPAN&gt;startingVersion&lt;/SPAN&gt;&lt;SPAN&gt; is inclusive.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;3. Prevent duplicate records using idempotent MERGE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;from delta.tables import DeltaTable

def upsert(batch_df, batch_id):
    target = DeltaTable.forName(
        spark, "silver.orders"
    )

    (target.alias("t")
        .merge(
            batch_df.alias("s"),
            "t.order_id = s.order_id"
        )
        .whenNotMatchedInsertAll()
        .execute()
    )

query = (
    df.writeStream
    .foreachBatch(upsert)
    .option("checkpointLocation", new_checkpoint_path)
    .start()
)&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;This example assumes immutable orders with unique, non-null order IDs. For mutable records, implement conditional updates and deterministic source deduplication.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;4. Consider stateful transformations&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the pipeline uses window aggregations, watermarks or stream-stream joins, resetting the checkpoint also removes accumulated state. Historical data may need to be replayed to reconstruct that state correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My recommendation is to preserve the old checkpoint, verify the last committed source position, create a new checkpoint and use idempotent writes. When the recovery position is uncertain, controlled overlapping replay is generally safer than risking data loss.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you confirm whether your source is Delta Lake, Kafka or Auto Loader? Also, does the pipeline contain any stateful transformations?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Official references:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/structured-streaming/checkpoints?utm_source=chatgpt.com" target="_blank" rel="noopener"&gt;Structured Streaming checkpoints&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/structured-streaming/delta-lake?utm_source=chatgpt.com" target="_blank" rel="noopener"&gt;Delta Lake streaming reads and writes&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ldp/recover-streaming?utm_source=chatgpt.com" target="_blank" rel="noopener"&gt;Recover from streaming checkpoint failures&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/structured-streaming/foreach?utm_source=chatgpt.com" target="_blank" rel="noopener"&gt;Idempotent writes using foreachBatch&lt;BR /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 29 Nov 2026 07:41:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-reset-a-streaming-checkpoint-without-reprocessing/m-p/177997#M57446</guid>
      <dc:creator>tajamulkhan</dc:creator>
      <dc:date>2026-11-29T07:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset a streaming checkpoint without reprocessing historical data?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-reset-a-streaming-checkpoint-without-reprocessing/m-p/178006#M57455</link>
      <description>&lt;P&gt;When the streaming logic changes in a way that &lt;STRONG&gt;breaks&lt;/STRONG&gt; the &lt;STRONG&gt;checkpoint&lt;/STRONG&gt; such as changing &lt;STRONG&gt;sources&lt;/STRONG&gt;, &lt;STRONG&gt;sinks&lt;/STRONG&gt; or &lt;STRONG&gt;stateful&lt;/STRONG&gt; operations, there is no way to repair the old checkpoint.&amp;nbsp;Streaming treats a &lt;STRONG&gt;new&lt;/STRONG&gt; checkpoint directory as a brand new stream that starts completely &lt;STRONG&gt;fresh&lt;/STRONG&gt;. &lt;STRONG&gt;Stop &lt;/STRONG&gt;the stream, &lt;STRONG&gt;note&amp;nbsp;&lt;/STRONG&gt;down where it got to (the &lt;STRONG&gt;last Kafka offset &lt;/STRONG&gt;or a &lt;STRONG&gt;cutoff timestamp&lt;/STRONG&gt;), &lt;STRONG&gt;start &lt;/STRONG&gt;the new query with a &lt;STRONG&gt;new checkpoint &lt;/STRONG&gt;location, and explicitly tell it where to begin&amp;nbsp;with Kafka that's &lt;STRONG&gt;startingOffsets &lt;/STRONG&gt;or &lt;STRONG&gt;startingTimestamp &lt;/STRONG&gt;so it picks up from the last processed point instead of replaying all six months. Note that trigger changes and rate limits don't need a new checkpoint and on DBR 18.2+ source evolution lets you add or reorder sources without losing your checkpoint state at all.&lt;/P&gt;&lt;P&gt;For duplicates, the target Delta table is the best safety point. If the new stream overlaps data the old one already wrote, write each micro batch with foreachBatch using an &lt;STRONG&gt;insert only MERGE &lt;/STRONG&gt;(WHEN NOT MATCHED THEN INSERT) on the &lt;STRONG&gt;business key&lt;/STRONG&gt; - the table itself then rejects anything already present, which is the right guard when streams overlap. Note if you are using txnAppId/txnVersion for idempotency, you must change the txnAppId when you reset the checkpoint - a fresh checkpoint restarts batch IDs at 0 so Delta would mistake the new batches for replays and silently skip them.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2026 11:45:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-reset-a-streaming-checkpoint-without-reprocessing/m-p/178006#M57455</guid>
      <dc:creator>balajij8</dc:creator>
      <dc:date>2026-11-29T11:45:23Z</dc:date>
    </item>
  </channel>
</rss>

