COPY INTO vs Auto Loader: Which Ingestion Method and When
Both load files into Delta exactly once. The choice comes down to file volume over the table's lifetime, who maintains the pipeline, and how often you need to reload a subset.
Topic
ACID tables on the lake — MERGE, time travel, compaction and schema evolution.
Both load files into Delta exactly once. The choice comes down to file volume over the table's lifetime, who maintains the pipeline, and how often you need to reload a subset.
Twenty scenario-based data modeling problems asked in data engineer and analytics engineer interviews, with what the interviewer is checking and a strong answer for each.
The three settings that decide whether Auto Loader is cheap and boring or expensive and surprising — file discovery mode, schema evolution mode, and what actually lives in the checkpoint.
Which trigger mode to pick and what it costs, what actually lives in a checkpoint, and the three conditions exactly-once depends on — one of which is your code.
Warn, drop or fail — the three expectation actions, the quarantine pattern that's better than all of them, and how to keep quality rules out of your pipeline code.
A CDC feed sends duplicates and out-of-order changes. Build a MERGE that keeps the latest row per key, ignores late events and is safe to replay.
Enable Change Data Feed and read row-level inserts, updates and deletes by version to refresh downstream Delta tables incrementally.
When to use a shallow clone, a deep clone or RESTORE: test on real data, take real backups, and roll back bad writes safely.
Deletion vectors mark rows instead of rewriting files; row tracking gives rows stable IDs. How both work, what they cost, and how to purge.
Identity keys, computed columns and defaults in Delta: what each guarantees, what it doesn't, and the concurrency trade-off that bites.
25 scenario-based Delta Lake interview questions in five areas, with what the interviewer is checking and a strong answer for each.
The five Delta MERGE patterns (upsert, insert-only, newer-wins, deletes, full sync), the errors that break them, and how to make them fast.
Query old Delta versions, compare them, recover from a bad write, and set retention correctly now that Runtime 18 changed the rules.
OPTIMIZE compacts, Z-ORDER sorts, VACUUM deletes. How each works, how to schedule them, and what predictive optimization and Runtime 18 changed.
Delta rejects mismatched writes by default. How to allow new columns, wider types, renames and drops on purpose, one write at a time.
Why Delta tables collect tiny files, how to measure it, and the writer fixes and compaction strategies that stop it coming back.
Read _delta_log yourself: what commits and checkpoints contain, how readers build snapshots, and how concurrent writers avoid corruption.
The three table formats now share most features. What still differs: metadata design, engine and catalog support, and write patterns.
Three fact table types answer three kinds of question: what happened, what's the position, and how far along is it. Build each on Delta Lake, and avoid summing what shouldn't be summed.
Build your first declarative pipeline end to end — streaming tables, materialized views, flows and the pipeline graph — using the pyspark.pipelines API that replaced import dlt.
Facts that show up before their customer exists, and facts that show up weeks after the event. Inferred members, point-in-time joins and re-keying jobs on Delta Lake, with the trade-offs of each.
Three ways to make Delta skip files, compared on cost and flexibility, with a decision order, migration steps and when partitioning still wins.
50 PySpark interview questions across transforms, joins, windows, partitioning, performance, streaming, Delta Lake, and system design — with answers, not just questions.
A field checklist for slow or expensive PySpark jobs: baseline first, then read less, shuffle less, balance the work, compute smarter, use memory well and write right.
Expire the old version and insert the new one in a single Delta MERGE. The staged-union pattern, a PySpark version, the tests that catch broken history, and when to hand it to AUTO CDC.
One customer moves city. Four SCD types record it four different ways. See the rows each type produces, the SQL that writes them, and how to choose per column.
Delta tables didn't make dimensional modeling obsolete. Here's how to pick the grain, split facts from dimensions, and build a star schema on Databricks that analysts can trust.
Identity columns, hash keys and ROW_NUMBER sequences all produce surrogate keys on Delta Lake. They differ on concurrency, collisions, reproducibility and join cost. Here's how to choose.
Build bronze, silver and gold on Databricks with Auto Loader, MERGE and liquid clustering, plus the mistakes that break it in production.
Build bronze, silver and gold in one Fabric lakehouse with schemas and materialized lake views, plus the gotchas that hit in production.
Why MERGE quietly rewrites far more data than it changes, and the three fixes that keep it fast: prune the target, deduplicate the source, compact after.
Four window patterns cover almost every pipeline need: latest-row dedupe, sessionization, running totals and gap detection — with the performance traps of each.
Delta's mergeSchema option does nothing for MERGE statements — automatic schema evolution for MERGE is a separate session setting.
Apply a day's customer address changes to a dimension table, closing old versions and inserting new ones, in a single MERGE.
Keep exactly one row per event_id — the latest by timestamp — from a bronze table that receives replays and retries.
Orders can arrive up to 7 days late and finance locks reports after 48 hours. Design the pipeline that keeps both honest.
Watch a bronze → silver → gold pipeline built end to end on Databricks, and learn what each layer actually promises.
See exactly which files a MERGE rewrites, then watch partition pruning cut a 300 GB rewrite down to 4 GB.
A printable checklist for designing and reviewing bronze, silver and gold layers — naming, quality gates, ownership and the questions to ask at each hop.
The governance, Delta Lake and SQL topics the Databricks Data Engineer Associate exam leans on, with practice problems for each.
Go from never having built a bronze/silver/gold pipeline to shipping one on Databricks, with a Fabric comparison and hands-on MERGE practice.