internalsGet Pro

Module 07 · Lesson 7 of 9Pro

Landing CDC data in a warehouse or lakehouse

Level
Intermediate
Topic
Change data capture and replication
Reading time
17 min

When you finish this page you can

  1. Explain why a table of change events is not a table of orders, and what goes wrong when a report reads it as one.
  2. Choose between upserting at the sink, reading the change log through a view, and keeping the log plus a merged current-state table.
  3. Write a MERGE that applies only new change events, keeps the newest per row, and handles deletes, in Snowflake and in DuckDB.
  4. Pick how often to merge by weighing freshness against warehouse credits.
  1. MERGE and upserts: updating tables in place18 min
  2. Debezium and CDC connectors in practice18 min
  3. Ordering and duplicates in CDC pipelines18 min

Monday’s revenue came out at ₹210 crore

is an online store in India. It takes about 500,000 orders a day, and Daniel, who leads finance reporting, needs yesterday’s revenue by 07:00 every morning. Until last week, Meera, a data engineer on Kartly’s data team, loaded changed orders every hour from a PostgreSQL read replica into Snowflake.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan