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

Find the intended registered table

Coding challenges

The same short reference returns test equipment

The maintenance lookup worked in its original session. A changed current schema now sends the same short name to commissioning’s test readings.

BOTIE

The reference is readings. The current catalog is operations, but the schema changed from maintenance to commissioning. TEST_P7 now appears. Which explanation fits?
The inputs we are comparing

Requested table-name parts

Same in both cases

  1. 0readings

Current catalog

Same in both cases

operations

Current schema

The short name begins in maintenance

maintenance

The current schema changes to commissioning

commissioning

Registered tables and effective readers

Same in both cases

[
  {
    "name": "operations.maintenance.readings",
    "readers": [
      "botie"
    ],
    "rows": [
      {
        "pump": "P7",
        "temperature_c": 12
      }
    ]
  },
  {
    "name": "operations.commissioning.readings",
    "readers": [
      "botie"
    ],
    "rows": [
      {
        "pump": "TEST_P7",
        "temperature_c": 80
      }
    ]
  }
]

Verified principal identity

Same in both cases

botie
Result for the short name begins in maintenance
name
operations.maintenance.readings
rows
  1. pump
    P7
    temperature_c
    12
Choose an explanation to test
A different catalog has the same schema and table names

This check uses the pieces from “Make the selected table identity visible”.

BOTIE

The current catalog is research. Resolve maintenance.readings there rather than borrowing operations’ table. Keep the resolved identity beside its empty rows.
Requested table-name parts
  1. 0maintenance
  2. 1readings
Current catalog
research
Current schema
other
Verified principal identity
botie
Registered tables and effective readers
[
  {
    "name": "operations.maintenance.readings",
    "readers": [
      "botie"
    ],
    "rows": [
      {
        "pump": "P7",
        "temperature_c": 12
      }
    ]
  },
  {
    "name": "research.maintenance.readings",
    "readers": [
      "botie"
    ],
    "rows": []
  }
]

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.

Why can a fully qualified table name prevent a naming mistake without guaranteeing permission to read the table?

Keep the requested identity, the session defaults and the actual requesting principal explicit.

This local model uses simple lowercase registered names and explicit effective reader lists. It does not parse SQL, authenticate identities or implement Unity Catalog inheritance, ownership, namespace privileges, workspace restrictions or cloud storage permissions.

Continue the courseThe Basics of Spark →
← Workspaces and Compute