Open lesson

Mission: a report Voss cannot blur

Command palette

This mission workspace keeps code and notes in this browser tab. Export them before closing it. Running code is practice, not an automatic grade for the mission.

Brief

Build an event-grain report with dbt, document its meaning, check its rows, and decide when a full rebuild is needed.

Imani must submit an explainable analysis. Voss claims an old screenshot alone proves the prototype was on the road at 21:25. Mara gives you the five practice files and asks for a reproducible answer. The meeting is near in the fiction; no timer prevents you from checking every step in the lesson.

Your mission

  1. Draw the dependencies from both input models to fct_vehicle_report using ref().
  2. Give the two expected rows and the report grain.
  3. Explain unique, not_null, and the NULL physical_asset test.
  4. Describe when an incremental build could retain a wrong old result, and how to check it.

How to check your work

  • Inputs precede the report and ref() establishes the links.
  • R1 / PROTOTYPE-01 and R2 / SHELL-02; one event per row.
  • IDs are present and unique; missing associations are flagged.
  • A late correction requires revisiting old rows and comparing with a full rebuild.

Code

Use Tab to leave the editor. Ctrl+Enter runs the source. The lines beginning with # are task reminders. Python ignores them. Write your code beneath them.

Python console

Loading laboratory…

Explore Python or SQL here; this is not an operating-system shell.

This is a disposable browser experiment. The code run here is not recorded as a completed mission.

Each command starts a fresh disposable worker: it runs a captured copy of your current source, then your command with the lesson fixtures. Changes are discarded afterward. Commands never save source or award XP. Ctrl+Enter executes the command.

Virtual workspace files

Source and declarative assets are readable here without JavaScript. Python input files are created at runtime; SQL setup initializes the disposable database.

source.py

Current editor source. Inspection shows your current edits.

# Draw the dependencies from both input models to fct_vehicle_report using ref().
# Give the two expected rows and the report grain.
# Explain unique, not_null, and the NULL physical_asset test.
# Describe when an incremental build could retain a wrong old result, and how to check it.