Skip to content

Ingesting with Lakeflow Spark Declarative Pipelines and Auto Loader

Lakeflow Spark Declarative Pipelines let you define ETL as declarative streaming tables and materialized views in SQL or Python, and Auto Loader (the cloudFiles source) is the standard way to incrementally ingest new files from cloud object storage into these pipelines. Together they provide scalable, checkpointed, schema-aware ingestion without manually tracking which files have already been processed.

1 · Learn the must-know

  • Auto Loader is invoked with format('cloudFiles') and requires cloudFiles.format to specify the underlying file type (e.g., json, csv, parquet, avro).
  • Declarative pipelines typically use CREATE OR REFRESH STREAMING TABLE (SQL) or @dlt.table with spark.readStream (Python) to wire an Auto Loader source into the pipeline's managed DAG.
  • Auto Loader supports directory listing (default) and file notification modes; file notification uses cloud-native queue/event services to scale to very large numbers of files with lower listing overhead.
  • Schema inference and evolution are controlled by cloudFiles.schemaEvolutionMode (e.g., addNewColumns, rescue, failOnNewColumns, none), and unmatched data is captured in a rescued data column (_rescued_data) by default.
  • Auto Loader relies on a checkpoint location to track which files have been ingested, guaranteeing exactly-once processing even after pipeline restarts.
  • Within a pipeline, expectations (constraints) can be attached to streaming tables fed by Auto Loader to validate, drop, or fail records that don't meet data quality rules during ingestion.

2 · Check your understanding

Check this objectiveFree · always available

A data engineer configures an Auto Loader source inside a Lakeflow Declarative Pipeline to ingest JSON files that occasionally contain new fields added by an upstream application team. The engineer wants any new fields to be added automatically as new columns in the target streaming table without manually stopping and redefining the pipeline. Which configuration should the engineer apply to the cloudFiles source?

Your objective map0 tried · 0 answered correctly · 77 untouched

What you have tried across DP-750's objectives, not a readiness score.

Set up and configure an Azure Databricks environment15-20% of the exam0 of 13 tried
Secure and govern Unity Catalog objects15-20% of the exam0 of 12 tried
Prepare and process data30-35% of the exam0 of 28 tried
Deploy and maintain data pipelines and workloads30-35% of the exam0 of 24 tried

3 · Keep going