Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

Data Pipelines with Databricks

Give a failed expectation an explicit effect

Coding challenges

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 pipeline retained 10,-1,20 under a declared warning policy. What is wrong with expecting the invalid row to disappear?
The inputs we are comparing

Candidate sensor records

Same in both cases

  1. temperature
    10
  2. temperature
    -1
  3. temperature
    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

  1. temperature
    4
Result for fail blocks the candidate
status
failed
rows
  1. temperature
    4
passed
2
failed
1
Choose an explanation to test
A different field passes exactly at its boundary

This check uses the pieces from “Make the chosen policy control publication”.

BOTIE

Pressure values are 4,5 and null. With a minimum of 5, drop only failing records and publish the accepted candidate.
Candidate sensor records
  1. pressure
    4
  2. pressure
    5
  3. pressure
    null
Field checked by this expectation
pressure
Minimum accepted value
5
Declared publication policy
drop
Earlier published rows
  1. 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.

Continue the courseA Better Score on Which Dataset? →