Description
In this video, we cover MERGE INTO β the most powerful and most misunderstood Delta
Lake operation. You will learn how to implement upserts, build Change Data Capture
(CDC) pipelines, and handle Slowly Changing Dimensions (SCD Type 2) using MERGE INTO
in PySpark and Databricks.
This is video L7 in the Delta Lake Complete Guide 2026 series.
What we cover in this video:
βΈ MERGE INTO syntax and how the matching condition works
βΈ Implementing upserts β insert if new, update if existing
βΈ Building a CDC pipeline using MERGE INTO
βΈ SCD Type 2 β tracking historical changes with MERGE INTO
βΈ Conditional updates and inserts within a single MERGE statement
βΈ Common MERGE INTO performance pitfalls and how to avoid them
βΈ When NOT to use MERGE INTO
By the end of this video, you will be able to implement production-grade upsert and
CDC patterns confidently using Delta Lake.
βββββββββββββββββββββββββ
π LINKS
βββββββββββββββββββββββββ
βΈ Delta Lake Complete Guide 2026 playlist: https://www.youtube.com/playlist?list=PLkz1SCf5iB4cA6iYeXXvqporVpq2t8jvs
βΈ L1 β What is Delta Lake and why it matters on AWS: https://youtu.be/_29tguUvnps
βΈ L2 β Creating and managing Delta tables: https://youtu.be/vRa1YFdfl9I
βΈ L3 β Batch and streaming reads and writes: https://youtu.be/NgW--dV6X-g
βΈ L4 β Time Travel: https://youtu.be/1-TyobuLKCY
βΈ L5 β VACUUM, OPTIMIZE and Z-Ordering: [video link]
βΈ L6 β RESTORE and rollback: https://youtu.be/8e2a1MYgdqU
βΈ Spark Performance Tuning course: www.scholarnest.com
βΈ Generative AI for Data Engineers course: www.scholarnest.com
βββββββββββββββββββββββββ
π ABOUT THIS SERIES
βββββββββββββββββββββββββ
The Delta Lake Complete Guide 2026 is a free, structured 11-part series for data
engineers who want to go beyond the basics. Every video is recorded as part of a full
Databricks on AWS course β real engineering depth, not simplified demos.
New videos every week. Subscribe and hit the bell so you don't miss any part of the series.
βββββββββββββββββββββββββ
π€ ABOUT THE INSTRUCTOR
βββββββββββββββββββββββββ
Data engineer and architect with 25 years of industry experience. I create self-paced
courses on Apache Spark, Databricks, Kafka, and Generative AI for data engineers.
πΊ YouTube: Learning Journal (you're already here!)
π Website: www.scholarnest.com
βββββββββββββββββββββββββ
#DeltaLake #Databricks #ApacheSpark #PySpark #DataEngineering #CDC #LearningJournal