Databricks
The Databricks template uses Auto Loader or Structured Streaming with an available-now trigger, or a watermark filter on a Delta table, scheduled as a job.
- A streaming read with an available-now trigger processes everything new and then stops, so the job runs on a schedule and still keeps its progress in a checkpoint.
- Delta's transaction log makes the append atomic: the new rows appear all at once or not at all.
- A table-to-table watermark filter is the easier form to reason about and test, and it is the form a DuckDB golden test exercises directly.
- A streaming watermark is a different thing from this shape's watermark column. It sets how late an event may be and still be counted in a stateful operation, such as a windowed aggregate.