From Repetition to Reuse: The Evolution of Apache Spark Declarative Pipelines
summary
Shows a concrete implementation: Spark Declarative Pipelines (SDP) running on Spark 4.x via Spark Connect, with examples that actually run locally and log progress. Claims include automatic dependency derivation between streaming tables and materialized views, built-in manages checkpoints and schema evolution, and an Auto CDC SCD type two implementation (type one in 4.2, type two in 4.3) that turns hundreds of merge lines into configuration and correctly reconciles late events. Demo uses Iceberg for merges, integrates with Airflow for scheduling, and notes current limits: no continuous stream mode and one flow per dataset.
AI-written summary · about
chapters (20)
- 0:00Introduction and speaker intro
- 3:33Imperative vs declarative pipelines
- 6:19Spark declarative pipelines explained
- 7:03Declarative paradigm in Spark
- 9:11Streaming tables and materialized views
- 11:39State management in streaming tables
- 12:02Code example with decorators
- 13:25Materialized views vs streaming tables
- 14:50Data flow graph and validation
- 16:36State management and schema evolution
- 17:20Auto CDC introduction
- 20:12Auto CDC complexity and benefits
- 21:56SCD types and Spark 4.3 updates
- 22:17Benefits of declarative framework
- 23:00Spark Pipelines CLI and workflow
- 24:43First demo walkthrough
- 28:35Integration with Airflow
- 29:39Second demo Auto CDC
- 35:29Spark 4.x features and roadmap
- 36:39Q&A session
