Databricks adds rewind to Spark Declarative Pipelines in beta
The feature rolls back table data and streaming processes together, which Databricks says reduces the need for backfills.

Databricks has added a rewind feature to Spark Declarative Pipelines (SDP) that rolls an entire pipeline back to an earlier point. It covers both table data and the streaming processes that produce it. According to Databricks, this reduces the need for backfills and shortens recovery time. The feature is in beta.
SDP periodically generates rewind points, which are consistent metadata snapshots covering each flow and dataset. After a problem, a user picks one snapshot and runs the rewind. The pipeline can then execute again. According to Databricks, the next update replays the rewound data, so a user can fix the transformation logic first.
Databricks contrasts rewind with Delta Lake RESTORE. RESTORE brings a table's contents back, yet the writing processes still consider the data already processed. The company says recovery then usually requires ad hoc backfills. A pipeline might manage thousands of tables.
Changes to Structured Streaming
Databricks extended the Structured Streaming checkpoint layer so a stream can run forward from any earlier batch still in retention. The company added control batches, a new batch type for operations such as a rewind, and put source and sink metadata in the offset and commit logs.
It normally consumes transient file notifications, so a rewound stream cannot recover the original source state. Databricks added a rewind log with metadata for archived checkpoint files.
Databricks says rewind works with triggered and continuous pipelines. For continuous ones, SDP chooses rewind points that guarantee replay covers all rolled-back data. It also hopes to establish a protocol so downstream consumers can recognize a rewind.
