Search
Everything on the site — articles, learnings, problems, guides, videos and paths.
71 results
- ArticlePySpark · intermediate
Why AQE Coalesces Shuffle Partitions (and When It Can't Help)
How Adaptive Query Execution merges small shuffle partitions at runtime, the settings that control it, and the cases where you still have to tune.
- ArticleDatabricks · intermediate
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.
- ArticleData modeling · intermediate
Data Modeling Interview Questions: 20 Design Problems with Answers
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.
- ArticleDataOps & CI/CD · advanced
Databricks Asset Bundles: CI/CD for Jobs and Pipelines
One databricks.yml, three environments, zero clicking. Bundle structure, targets and modes, variables, and a promotion pipeline that deploys as a service principal.
- ArticleDatabricks · intermediate
Auto Loader: Schema Evolution, Notifications and Checkpoints
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.
- ArticlePySpark · advanced
Structured Streaming on Databricks: Trigger Modes, Checkpoints and Exactly-Once
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.
- ArticleDatabricks · intermediate
Data Quality Expectations in Declarative Pipelines
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.
- ArticleDelta Lake · intermediate
Deduplicate Late-Arriving CDC Rows with MERGE: A Worked Problem
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.
- ArticleDelta Lake · intermediate
Delta Change Data Feed: CDC Downstream Without Extra Tooling
Enable Change Data Feed and read row-level inserts, updates and deletes by version to refresh downstream Delta tables incrementally.
- ArticleDelta Lake · intermediate
Shallow vs Deep Clone and RESTORE: Safe Recovery Patterns for Delta Tables
When to use a shallow clone, a deep clone or RESTORE: test on real data, take real backups, and roll back bad writes safely.
- ArticleDelta Lake · advanced
Deletion Vectors and Row Tracking in Delta: What They Change and What They Cost
Deletion vectors mark rows instead of rewriting files; row tracking gives rows stable IDs. How both work, what they cost, and how to purge.
- ArticleDelta Lake · intermediate
Identity, Generated and Default Columns in Delta: What They Guarantee
Identity keys, computed columns and defaults in Delta: what each guarantees, what it doesn't, and the concurrency trade-off that bites.
- ArticleDelta Lake · intermediate
Delta Lake Interview Questions: 25 Scenario Problems with Answers
25 scenario-based Delta Lake interview questions in five areas, with what the interviewer is checking and a strong answer for each.
- ArticleDelta Lake · intermediate
Delta Lake MERGE: Five Upsert Patterns and How to Make Them Fast
The five Delta MERGE patterns (upsert, insert-only, newer-wins, deletes, full sync), the errors that break them, and how to make them fast.
- ArticleDelta Lake · beginner
Delta Lake Time Travel in 12 Minutes: Query, Compare and Recover Old Versions
Query old Delta versions, compare them, recover from a bad write, and set retention correctly now that Runtime 18 changed the rules.
- ArticleDelta Lake · intermediate
OPTIMIZE, VACUUM and Z-ORDER Explained: What Each One Actually Does
OPTIMIZE compacts, Z-ORDER sorts, VACUUM deletes. How each works, how to schedule them, and what predictive optimization and Runtime 18 changed.
- ArticleDelta Lake · intermediate
Delta Lake Schema Evolution and Enforcement: Add, Widen, Rename, Replace
Delta rejects mismatched writes by default. How to allow new columns, wider types, renames and drops on purpose, one write at a time.
- ArticleDelta Lake · intermediate
The Small Files Problem in Delta Lake: Causes, Diagnosis and Compaction Strategies
Why Delta tables collect tiny files, how to measure it, and the writer fixes and compaction strategies that stop it coming back.
- ArticleDelta Lake · advanced
Inside the Delta Transaction Log: Commits, Checkpoints and Optimistic Concurrency
Read _delta_log yourself: what commits and checkpoints contain, how readers build snapshots, and how concurrent writers avoid corruption.
- ArticleDelta Lake · intermediate
Delta Lake vs Apache Iceberg vs Apache Hudi: How to Choose in 2026
The three table formats now share most features. What still differs: metadata design, engine and catalog support, and write patterns.
- ArticleDatabricks · beginner
DLT, Lakeflow and Spark Declarative Pipelines: The Naming Decoded
Four names, one engine, four years. A short map of what got renamed, what got open-sourced, what your old code still does, and which word to use in an interview.
- ArticleData modeling · intermediate
Fact Table Types: Transaction, Periodic Snapshot and Accumulating
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.
- ArticleData modeling · advanced
Kimball vs Data Vault vs One Big Table: How to Choose
Three modeling styles, three different problems they solve. A decision framework based on source count, audit needs, team size and consumers, plus the hybrid most lakehouses end up with.
- ArticleDatabricks · intermediate
Lakeflow Connect: Managed Ingestion from Databases and SaaS Sources
What a managed connector actually runs on your behalf — the ingestion gateway, staging and pipeline — plus when a connector beats hand-rolled CDC and when it doesn't.
- ArticleDatabricks · intermediate
Lakeflow Jobs: Task Dependencies, Repair Runs and Triggers
Build a job graph that survives a bad night — run_if conditions for error handling, the five trigger types and their limits, and why repair runs only help idempotent tasks.
- ArticleDatabricks · intermediate
Lakeflow Spark Declarative Pipelines (Formerly DLT): Getting Started
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.
- ArticleData modeling · advanced
Handling Late-Arriving Dimensions and Facts in a Lakehouse
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.
- ArticleDelta Lake · intermediate
Liquid Clustering vs Partitioning vs Z-Order: Which Layout and When
Three ways to make Delta skip files, compared on cost and flexibility, with a decision order, migration steps and when partitioning still wins.
- ArticlePySpark · intermediate
Flatten Nested JSON and Arrays in PySpark
A practical pattern for turning deeply nested structs, arrays, and maps into flat, queryable tables — without hardcoding every field path.
- ArticlePySpark · intermediate
PySpark Interview Questions: 50 Coding and Scenario Problems
50 PySpark interview questions across transforms, joins, windows, partitioning, performance, streaming, Delta Lake, and system design — with answers, not just questions.
- ArticlePySpark · advanced
PySpark Performance Tuning Checklist for Production Jobs
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.
- ArticlePySpark · intermediate
PySpark UDF vs Pandas UDF vs Built-in Functions: Pick the Right One
A field guide to when built-ins, Pandas UDFs and plain Python UDFs actually make sense, with the serialization cost that explains the gap between them.
- ArticlePySpark · intermediate
PySpark Window Functions with Practical Examples
Running totals, rankings, lag/lead comparisons, and moving averages in PySpark — what a window actually is under the hood and where it gets expensive.
- ArticlePySpark · intermediate
Reading the Spark UI: Stages, Tasks, Spill and Skew
A practical route through the Spark UI: map a slow query to its stage, read the summary metrics, and recognise skew, spill, tiny files and GC pressure.
- ArticlePySpark · beginner
repartition vs coalesce: When Each Is Right
repartition shuffles to any count with even sizes; coalesce merges without a shuffle but only downwards. When to use each, and the coalesce(1) trap.
- ArticleData modeling · intermediate
SCD Type 2 with Delta MERGE: One Atomic Statement, SQL and PySpark
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.
- ArticleData modeling · intermediate
Slowly Changing Dimensions: Types 1, 2, 3 and 6 with SQL
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.
- ArticleSpark SQL · intermediate
Broadcast Join vs Sort-Merge Join vs Shuffle Hash Join: How Spark Chooses
How each Spark join strategy moves data, the rules Spark uses to pick one, how AQE changes the choice at runtime, and when to step in with a hint.
- ArticlePySpark · intermediate
cache vs persist vs checkpoint in Spark: What Each Keeps and When to Use It
cache and persist keep results but remember the lineage; checkpoint keeps only the result. Storage levels, when each pays off, and what to use on serverless.
- ArticlePySpark · advanced
Data Skew in Spark: Detect It and Fix It
Find the hot key behind a stage that never finishes, then fix it with AQE skew joins, key cleanup, hot-key isolation or salting, in that order.
- ArticlePySpark · advanced
Spark Memory Management: Executors, Spills and OOM Fixes
How executor and driver memory is actually divided, why tasks spill, and how to diagnose and fix each kind of out-of-memory error instead of just adding RAM.
- ArticlePySpark · intermediate
Structured Streaming Basics: Watermarks, Checkpoints and Output Modes
The three concepts that make Spark Structured Streaming behave predictably — explained with the failure modes you hit when you skip them.
- ArticleData modeling · beginner
Star Schema in the Lakehouse: Facts, Dimensions and Grain
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.
- ArticleData modeling · intermediate
Surrogate Keys in a Lakehouse: Identity, Hashes or Sequences
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.
- ArticleDataOps & CI/CD · intermediate
Testing PySpark Code with pytest
A test pyramid that actually fits a Spark pipeline — fast unit tests for transform logic, a shared local SparkSession, and a pattern for Delta-backed integration tests.
- ArticleDatabricks · intermediate
Medallion Architecture on Databricks, End to End
Build bronze, silver and gold on Databricks with Auto Loader, MERGE and liquid clustering, plus the mistakes that break it in production.
- ArticleAzure storage & Fabric · intermediate
Medallion Architecture in a Fabric Lakehouse
Build bronze, silver and gold in one Fabric lakehouse with schemas and materialized lake views, plus the gotchas that hit in production.
- ArticleDatabricks · beginner
Unity Catalog Explained: Metastore, Catalogs, Schemas and Volumes
How Unity Catalog organizes data on Databricks: metastore, catalogs, schemas, tables and volumes, with the SQL to set each one up.
- Learning pathDatabricks · intermediate
Databricks Data Engineer Associate prep
The governance, Delta Lake and SQL topics the Databricks Data Engineer Associate exam leans on, with practice problems for each.
- Learning pathArchitecture · beginner
Zero to Medallion pipeline
Go from never having built a bronze/silver/gold pipeline to shipping one on Databricks, with a Fabric comparison and hands-on MERGE practice.