A scenario for a data engineer · Junior and up
Gold has orders with no customer
Query · Analytics
Tuesday, 15:15
A source system sometimes sends orders with an empty customer id. Your Lakeflow pipeline carries them into the Gold table, where they break the join behind the sales dashboard.
What do you do?
Tap the one you would do. The answer opens below.
Show the best callThe best call
Add an expectation to the pipeline that keeps rows with no customer id out of Gold, sets them aside in a quarantine table, and counts them.
Gold stays clean, no sale is lost, and the count tells you when the source gets worse.
Why
Pipeline expectations check each row against a rule. You choose what a failure does: keep the row and record it, drop the row, or stop the update. Rows that must not reach Gold but are still real data can go to a quarantine table.
Read it in the Databricks docs (opens in a new tab)The other two
- Works, at a price. Make the pipeline stop whenever one of these rows shows up.
- Gold is clean. One bad row at night now stops this table and everything built on it until someone wakes up.
- A poor call. Filter them out in the dashboard query.
- That dashboard is fine. The next one built on the table is not.
The words in this scenario
- Expectations.
- Rules in a pipeline that say what a valid row looks like, and what happens to a row that breaks one: it is kept and counted, dropped, or the update stops. In the docs (opens in a new tab)
Go deeper on brickster.ai
- Data Quality: what changed recentlyNews, releases, videos and questions on it, gathered daily.
- LakeFlow: what changed recentlyNews, releases, videos and questions on it, gathered daily.
- Drill data quality in PracticeShort questions with the reason after each answer.
More scenarios
- An order for minus three items · data engineer
- The primary key did not stop the duplicates · data engineer
- A column name everyone reads · data engineer
- All 47 scenarios
Had one like this at work? Send it to us: the best tickets come from real incidents.
Checked against the Databricks documentation on . brickster.ai is independent and is not affiliated with Databricks.