A scenario for a data engineer · Staff and up
Where should the new pipeline read from?
Chief · Your manager
Thursday, 10:00
You are designing a Lakeflow pipeline on a Kafka topic that keeps messages for seven days. The cleaning rules will change as the business learns what it needs.
What do you do?
Tap the one you would do. The answer opens below.
Show the best callThe best call
Land the raw messages in a Bronze table untouched, keep them, and build the cleaned tables from Bronze.
When the rules change you fully refresh only the cleaned tables. Bronze still has every message since the first day.
Why
A full refresh clears a streaming table and processes its source again, so it brings back only what the source still holds. Keep the raw data in a Bronze table, and set pipelines.reset.allowed to false on it so that a full refresh cannot clear it.
Read it in the Databricks docs (opens in a new tab)The other two
- Works, at a price. Clean straight from Kafka into Silver, and ask for the topic to keep thirty days.
- A rule change can be replayed for a month. Anything older stays as the old rules left it.
- A poor call. Clean straight from Kafka into Silver. A full refresh can always rebuild it.
- The first full refresh clears the table and reloads the seven days Kafka still has. The rest is gone.
Go deeper on brickster.ai
- Kafka: what changed recentlyNews, releases, videos and questions on it, gathered daily.
- LakeFlow: what changed recentlyNews, releases, videos and questions on it, gathered daily.
- Follow Structured StreamingNews, releases, videos and questions on it, gathered daily.
More scenarios
- The hourly totals come up short · data engineer
- The stream stopped on a new column · data engineer
- A small change to a running stream · 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.