Spill
Spilling is not an error; it is the engine refusing to crash. It also turns the fast part of a query into the slow part, which is why it shows up in metrics.
Spilling is not an error; it is the engine refusing to crash. It also turns the fast part of a query into the slow part, which is why it shows up in metrics.
Some operations keep each partition’s work local; others need rows from everywhere. That difference is where stage boundaries and expensive recovery come from.
Each step returns instantly and nothing has run. Deferring work is what lets an engine see the whole query — and why the last line gets all the blame.
Spark’s optimizer rewrites a query in stages before anything runs. Rules do most of the work; size statistics mainly decide which join implementation you get.
A system that scales beautifully may still be slower than one thread. COST names the hardware a platform needs before it beats a good single-threaded program.
Treating analytics as code, versioned and tested. The practices are borrowed from DevOps; the hard part — who owns which number — is not a tooling problem.
A build on stale input succeeds and looks fine. A freshness check compares the newest loaded row against a threshold, so the silence becomes an alert.
The same model can be a view, a rebuilt table, or an incremental load. The choice decides build cost, query speed, and what re-running it actually does.
Instead of guessing that the input has landed, a sensor waits for it. What it costs is a worker slot, some polling, and a deadline you must remember to set.
The 07:00 run usually processes yesterday, not this morning. Naming the interval a run covers is what makes a rerun mean the same thing as the original.
An orchestrator is not a fancier cron. It keeps state per run, enforces order, retries within limits — and still says nothing about whether the data is right.
Failed messages go somewhere instead of vanishing. That only helps if someone reads the queue — an unwatched DLQ looks exactly like data loss.
Three promises about how many times a record arrives. The useful question is not which one a product advertises, but where its guarantee stops.
Whether a delete event tells you only the key or the whole row is a source-side setting. It decides what history and audits downstream can reconstruct.
A log sequence number points at a place in the transaction log. It is how a pipeline knows the order of changes, where to resume, and what to ignore.
Seeding a table no longer has to mean one long locked scan. Chunks and watermarks let a snapshot run beside the change stream, and pause and resume.
The Lambda architecture pairs a batch path with a fast streaming path — and then has to keep two implementations of the same logic in agreement.
Kappa keeps a single streaming path. To fix logic or recompute history, it replays a retained log into a new output and switches consumers when it catches up.
Letting several systems use the same tables removes copies to sync and seems to need no interface — until one team changes a column others depended on.
Without a unique sort order, SQL may return tied rows in any order — so top-N lists, pages, and “latest record” picks can change between runs.
An anti-join finds rows with no match on the other side — customers who never ordered. One NULL can make NOT IN return nothing; NOT EXISTS does not.
MAJOR.MINOR.PATCH tells users whether an upgrade can break them — but only if what counts as the public interface was declared first. That applies to data, too.
A deprecated interface may keep working without a fixed removal date. Explain the support policy and, when retiring it, provide a migration plan.
Before changing a column, find everything that depends on it. Lineage finds the pipelines; query logs find the people; neither finds everyone on its own.
Column-level lineage narrows the dependencies to investigate. Its usefulness depends on whether selected fields, filters, joins, and other relevant paths were captured.
A sale recorded weeks late should still be credited to the region the customer belonged to at the time, not today’s. That is the late arriving fact problem.
One row per sale, payment, or click, at the finest grain the process records. Transaction fact tables answer “what happened” directly; state takes more work.
A warehouse gives each dimension row its own meaningless number, so one customer can have several historical versions, each with a key a fact can point to.
An order arrives before the new customer’s record. Rather than drop or hold it, load it against a placeholder row and fill that row in when the data comes.
When an employee rejoins with a new number or two customer records turn out to be one person, a durable key keeps a single identity across every change.
A balance can be summed across accounts but not across days. Semi-additive facts need a point in time or an average along the dimension where sums are nonsense.
A periodic snapshot stores the state of every account or product once per day or month, including quiet ones, so “what was it then” becomes a simple read.
Ratios and distinct counts cannot be added up, and averaging them is usually wrong too. Store the additive parts, aggregate those, and compute the ratio last.
A customer number or SKU identifies a record in its source system. It is essential for tracing data back, and unreliable as the only key a warehouse joins on.
To compare orders with shipments, do not join the two fact tables. Query each at the report’s grain on shared attributes, then merge the results.
Join an order to its shipments and the order amount appears once per shipment. The join is correct; the sum is not. This is where inflated totals come from.
Orders, shipments, and returns can be compared by customer or month only if those attributes mean exactly the same thing in each. That is a conformed dimension.
One row per order, updated as it is picked, shipped, and delivered. An accumulating snapshot makes lead times a subtraction, but keeps one date per step.
When a fact is stored in many rows, partial updates create contradictions and deleting a row can erase a fact kept nowhere else. Normalization prevents both.
Denormalization copies facts into more places so reads get simpler or faster. The price: every copy must be kept consistent by something other than the schema.
A data model has three levels — what exists, how it is represented, and how it is stored. Each is decided by different people and changes for different reasons.
“Customer” means one thing to billing and another to support. A bounded context is where a term has one meaning; at its edges, meaning must be translated.
Estimate planned and urgent exits separately: data transfer, logic changes, rebuilt operations, contracts, and transition work all affect the cost.
Some design decisions quietly control a quality like latency; others affect several qualities at once, sometimes in opposite directions. ATAM names both so they get measured.
ATAM evaluates an architecture by turning quality goals into concrete scenarios and finding the decisions they hinge on: risks, sensitivity and tradeoff points.
Throttling slows or refuses requests once a consumer passes its limit, so one burst does not take down everyone. Server-side limits protect capacity by themselves; callers that are told and back off keep retries from adding to the load.
Mirroring replicates an operational database into OneLake continuously, with no pipeline to build. It is still a copy, with lag and retention to manage.
Direct Lake reads Delta tables in OneLake instead of importing them, so a refresh updates only metadata. Guardrails, fallback, and security decide the rest.
A dedicated SQL pool reserves warehouse compute you pay for while it runs; a serverless pool charges for the data each query processes. They fit different jobs.
Every Fabric tenant has exactly one OneLake. Workloads store and read Delta or Iceberg tables in it, so one copy of data can serve Spark, SQL, and Power BI.