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

Choose the Next Pump-Processing Tasks

Coding challenges

BOTIE

Return the readiness records for every task before selecting the ready IDs.
Ready to test
0 passed · 0 failed · 2 not run

An empty floor. Start with the information your machine needs.

Received result

Your answer will arrive here.

Examples, experiments and workspace controls
Live values

Connect a tool's inputs to see what it produces. You can try a branch before connecting it to Result.

Try your own inputs

Use a copy of the example to try your own data. Keep the problem's assumptions in mind, and predict the effect of a change before checking the output. You can also add another branch to compare two ways of doing the calculation.

Start at an output arrow, then click or drag to an input. Drag empty space to pan. Delete removes a selection. Ctrl/Cmd+Z undoes a change.
Context for this challenge

Return the readiness records for every task before selecting the ready IDs.

Botie’s notebook procedure now needs to run without someone choosing the next cell from memory.

Inspect the component calculation
Check each task's prerequisites(
  Tasks with dependency IDs: Pump update task plan
  Successfully completed task IDs: Successfully completed tasks
)
Examples and results
Pump update task plan
  1. id
    read
    dependsOn
    []
  2. id
    clean
    dependsOn
    ["read"]
  3. id
    check
    dependsOn
    ["clean"]
  4. id
    publish
    dependsOn
    ["check"]
Successfully completed tasks
  1. 0read
Required result
  1. id
    read
    complete
    true
    ready
    false
    waitingFor
    []
  2. id
    clean
    complete
    false
    ready
    true
    waitingFor
    []
  3. id
    check
    complete
    false
    ready
    false
    waitingFor
    ["clean"]
  4. id
    publish
    complete
    false
    ready
    false
    waitingFor
    ["check"]
Pump update task plan
  1. id
    read
    dependsOn
    []
  2. id
    clean
    dependsOn
    ["read"]
  3. id
    check-values
    dependsOn
    ["clean"]
  4. id
    check-count
    dependsOn
    ["clean"]
  5. id
    publish
    dependsOn
    ["check-values","check-count"]
Successfully completed tasks
  1. 0read
  2. 1clean
Required result
  1. id
    read
    complete
    true
    ready
    false
    waitingFor
    []
  2. id
    clean
    complete
    true
    ready
    false
    waitingFor
    []
  3. id
    check-values
    complete
    false
    ready
    true
    waitingFor
    []
  4. id
    check-count
    complete
    false
    ready
    true
    waitingFor
    []
  5. id
    publish
    complete
    false
    ready
    false
    waitingFor
    ["check-values","check-count"]
Try a fresh construction

This clears this draft, including its undo history. Earlier successful attempts stay recorded. Build again without opening hints to record an independent attempt.

Stuck? Inspect a worked construction

The tools below form one possible solution. You can assemble it, follow its signals, and undo that change to return to your own construction.

Assumptions and test precision

This local graph model checks an all-prerequisites-successful rule. It does not run notebooks, reserve compute, implement retries or reproduce every Lakeflow Jobs run condition. Numerical tests allow a difference of 0.001. Lists and structures must also have the right shape.

Your last tested pieces can start the full construction. An existing draft there keeps its own pieces.

One of Two Checks Is Still Waiting

This check uses the pieces from “Make the Waiting Conditions Visible”.

BOTIE

The values check succeeded after cleaning, but the count check has not run. Which task may start next?
Pump update task plan
  1. id
    read
    dependsOn
    []
  2. id
    clean
    dependsOn
    ["read"]
  3. id
    check-values
    dependsOn
    ["clean"]
  4. id
    check-count
    dependsOn
    ["clean"]
  5. id
    publish
    dependsOn
    ["check-values","check-count"]
Successfully completed tasks
  1. 0read
  2. 1clean
  3. 2check-values

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 would happen if publish depended only on clean and skipped the quality check?

Keep the prerequisites that justify an output attached to the repeated procedure.

This local graph model checks an all-prerequisites-successful rule. It does not run notebooks, reserve compute, implement retries or reproduce every Lakeflow Jobs run condition.

Continue the courseTracking Experiments with MLflow →
← The Basics of Spark