Autoloader: Declarative Pipelines vs. Structured Streaming

AspectStructured Streaming (manual)Declarative Pipelines (DLT/Lakeflow)
Syntaxspark.readStream.format(“cloudFiles”).option(…).load(path)@dlt.table / CREATE STREAMING TABLE … AS SELECT * FROM cloud_files(…) (SQL) or dlt.read_stream in Python
Checkpoint locationYou must set checkpointLocation manually in writeStreamManaged automatically by the pipeline (stored under pipeline storage location)
Schema location (cloudFiles.schemaLocation)You set and manage it explicitlyManaged automatically; no manual path needed
Schema inferencecloudFiles.inferColumnTypes — you configureSame option available, but defaults are tuned by the pipeline; less boilerplate
Schema evolutioncloudFiles.schemaEvolutionMode (addNewColumns, rescue, failOnNewColumns, none) — handled by your own retry/stream-restart logic on failureSame modes supported, but pipeline framework handles the stream restart/recovery automatically when schema changes occur
Trigger controlFull manual control: trigger(availableNow=True), processingTime, once, continuousPipeline-level setting — pipeline runs in Triggered (batch-like, processes available data then stops) or Continuous mode; you don’t set triggers per-table
File detection modecloudFiles.useNotifications (directory listing vs. event notifications) — you configureSame underlying options available via pipelines.autoOptimize/cloudFiles options, but less commonly tuned manually since the pipeline optimizes it
Rate limitingcloudFiles.maxFilesPerTrigger, cloudFiles.maxBytesPerTrigger — you setSame options usable, but pipeline also applies its own backlog/cluster autoscaling to manage throughput
Start/stop/orchestrationYou call .start(), manage the StreamingQuery object, monitor .status, .lastProgress, handle restarts on failurePipeline engine starts/stops/retries streams as part of the DAG; no manual query object management
Error handling / retriesYou write your own retry logic (e.g., while loop restarting on StreamingQueryException)Built-in automatic retries and recovery at the pipeline level
Data quality checksNot built-in — you write custom foreachBatch/filter logicNative @dlt.expect / CONSTRAINT expectations (drop, fail, or just log bad records)
Lineage/DAG across tablesManual — you wire readStream/writeStream between notebooks/jobs yourselfAutomatic DAG inferred from table dependencies (bronze → silver → gold)
Monitoring/observabilitySpark UI, StreamingQueryListener, custom loggingBuilt-in pipeline event log, data quality metrics, lineage graph in UI
CDC / merge patternsYou write foreachBatch + MERGE INTO manuallyNative APPLY CHANGES INTO (CDC/SCD Type 1 & 2) with minimal code
FlexibilityHighest — full control over Spark session, custom sinks, arbitrary transformationsLower — constrained to the DLT programming model, but much less operational code
Best fitCustom/complex streaming logic, non-Delta sinks, fine-grained control neededStandard medallion (Bronze→Silver→Gold) ingestion where you want less boilerplate and built-in reliability

Autoloader: Declarative Pipelines vs. Structured Streaming

Bottom line: the Autoloader cloudFiles options themselves are largely the same set in both — Declarative Pipelines just wraps checkpointing, schema location, triggering, retries, and orchestration so you don’t configure them by hand.