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

Keep the run on its declared table version

Coding challenges

The code is identical but the mean changes

The routing repair still works, but a rerun silently reads a corrected table and changes the training evidence.

BOTIE

Version 0 has temperatures 10 and 20. Version 1 has 30 and 20. The model report names version 0, but its loader requests latest. What is the first repair?
The inputs we are comparing

Retained committed snapshots

Before the later correction exists

[
  {
    "version": 0,
    "rows": [
      {
        "pump": "P7",
        "temperature": 10
      },
      {
        "pump": "P2",
        "temperature": 20
      }
    ]
  }
]

Original training snapshot

[
  {
    "version": 0,
    "rows": [
      {
        "pump": "P7",
        "temperature": 10
      },
      {
        "pump": "P2",
        "temperature": 20
      }
    ]
  },
  {
    "version": 1,
    "rows": [
      {
        "pump": "P7",
        "temperature": 30
      },
      {
        "pump": "P2",
        "temperature": 20
      }
    ]
  }
]

Version named by this run

Same in both cases

0

Numerical feature column

Same in both cases

temperature
Result for before the later correction exists
15
Choose an explanation to test
A new correction arrives while the older run is inspected

This check uses the pieces from “Pin the input before calculating”.

BOTIE

Versions 2 and 3 are retained, but the report names version 2. Return the pressure mean for that version.
Retained committed snapshots
[
  {
    "version": 2,
    "rows": [
      {
        "pressure": 3
      },
      {
        "pressure": 9
      }
    ]
  },
  {
    "version": 3,
    "rows": [
      {
        "pressure": 99
      },
      {
        "pressure": 9
      }
    ]
  }
]
Version named by this run
2
Numerical feature column
pressure

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 else would need preserving before this old version could be called reproducible a year later?

A version reference needs retained data, recorded dependencies and an explicit failure when unavailable.

The history contains full local copies of the supplied versions. A real Delta read also depends on its transaction log, retained files and concurrency rules; choosing versions of separate tables requires an explicit input contract.

Continue the courseA Retried File Should Not Become New Training Data →
← One Busy Pump Can Keep Every Worker Waiting