Checking your account

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

Introduction to Databricks

Save the Intended Result Before Restarting

Coding challenges

The Empty Result Is Not Saved

The cleaning result is visible, but Botie needs it to remain available after a process restart.

BOTIE

The new calculation accepts no rows. After restart, the saved table still contains yesterday’s rejected row. Which decision needs repairing?
The inputs we are comparing

Previously saved pump records

Two saved rows become one accepted row

  1. id
    a
    temperature
    12
  2. id
    b
    temperature
    -3

The new calculation legitimately accepts no rows

  1. id
    c
    temperature
    -5

Rows calculated by the cleaning program

Two saved rows become one accepted row

  1. id
    a
    temperature
    12

The new calculation legitimately accepts no rows

[]
Result for two saved rows become one accepted row
saved
  1. id
    a
    temperature
    12
preview
null
Choose an explanation to test
A Fresh Batch Replaces the Earlier Result

This check uses the pieces from “Place the Save at the Right Point”.

BOTIE

The saved table contains a reading from last week. Today’s program returns the supplied two different records. Save that current preview before restarting, then return the saved rows with preview set to null.
Previously saved pump records
  1. id
    last-week
    temperature
    20
Rows calculated by the cleaning program
  1. id
    today-1
    temperature
    8
  2. id
    today-2
    temperature
    13

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.

Where would you look if the displayed output was correct but the next run still read the earlier table?

Inspect the explicit write and its destination, rather than assuming a display changed persistent data.

The saved field is an in-memory representation of persistent storage for this model. These tools neither run a notebook nor establish real write durability, permissions, transactions or cloud behavior.

Continue the courseTables and Unity Catalog →
← Data Lakes and Lakehouses