Data Pipelines with Databricks
Give a failed expectation an explicit effect
The failure count is nonzero but every row remains
The versioned merge is correct, but a warning was mistaken for a gate and invalid values reached training.
BOTIE
The inputs we are comparing
Candidate sensor records
Same in both cases
- temperature
- 10
- temperature
- -1
- temperature
- 20
| temperature |
|---|
| 10 |
| -1 |
| 20 |
Field checked by this expectation
Same in both cases
temperature
Minimum accepted value
Same in both cases
0
Declared publication policy
Fail blocks the candidate
fail
Warn measures but retains
warn
Earlier published rows
Same in both cases
- temperature
- 4
| temperature |
|---|
| 4 |
Result for fail blocks the candidate
- status
- failed
- rows
- temperature
- 4
temperature 4 - passed
- 2
- failed
- 1
A different field passes exactly at its boundary
This check uses the pieces from “Make the chosen policy control publication”.
BOTIE
- Candidate sensor records
- pressure
- 4
- pressure
- 5
- pressure
- null
pressure 4 5 null - Field checked by this expectation
pressure
- Minimum accepted value
5
- Declared publication policy
drop
- Earlier published rows
- pressure
- 8
pressure 8
Use a number, text, or an array matching the requested result. A named result uses field names, such as {"count": 2}. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.
Build a construction in the workspace above first. This case will test those pieces.
What evidence should an operator see when a failed update leaves the previous dataset in service?
Retain the candidate failure reason and the identity/age of the dataset that remains published.
We evaluate one candidate dataset and one temperature condition, then apply its publication policy. A real Lakeflow pipeline has its own update boundaries and failure metrics; a rejected-record dataset must be designed explicitly.