Sub topic 5
Finding your way around the workspace
This chapter assumes you know what a workspace is (the previous chapter covered it) and that you can read basic SQL and Python. You do not need to have used Databricks before. By the end you should be able to tell which sidebar area holds which kind of object, and find a notebook, a table, or a compute resource without guessing.
Two kinds of things live in a workspace
The most useful idea for navigation is that a workspace shows you two different families of objects, and they are stored and secured differently.
- Workspace objects are the files you work with: notebooks, folders, queries, dashboards, and files. They are stored and managed by the control plane, and their permissions are set per object or per folder.
- Data objects are catalogs, schemas, tables, volumes, and models. They are governed by Unity Catalog, and their permissions are set with
GRANTstatements or in Catalog Explorer.
Many "I can't find my table" problems come from looking in the wrong family. A table never appears in the workspace file browser, and a notebook never appears in Catalog Explorer.
The sidebar
The left sidebar is the main way to move around. Databricks changes its labels and grouping from time to time, so treat the names below as the usual ones and not a fixed list. The icons and order may differ in your workspace.
| Sidebar area | What you find there | Typical use |
|---|---|---|
| Workspace | Home folder, Shared folder, Git folders, Trash | Organize and open notebooks and files |
| Recents | Objects you opened lately | Jump back to work in progress |
| Catalog | Catalog Explorer for catalogs, schemas, tables, volumes | Browse data, see schema and sample rows, manage grants |
| Compute | All-purpose compute, pools, policies | Create, start, and stop clusters |
| SQL Editor, Queries, Dashboards | Saved SQL and visualizations | Run SQL on a SQL warehouse |
| Jobs and pipelines | Scheduled jobs, runs, pipelines | Automate notebooks and monitor runs |
| Search bar (top) | Notebooks, tables, queries, and more by name | Find something when you know part of its name |
The workspace browser
Open Workspace and you will see a tree of folders. Three locations matter most.
- Home is your personal folder, usually named after your user email. Only you can see it by default, which makes it a good place for experiments.
- Shared is visible to everyone in the workspace. Use it for material the whole team needs, but be aware that wide visibility is not the same as safe editing. Check who has the Can Edit permission.
- Trash holds deleted objects. You can restore from it, but do not treat it as a backup, because items are removed after a retention period (30 days at the time of writing).
Each object has a permission level set from its context menu. For notebooks the levels are usually Can Read, Can Run, Can Edit, and Can Manage. Folder permissions are inherited by the items inside, so granting access to a folder grants it to every notebook below it. Unity Catalog does not control any of this.
Every object also has a path, such as /Workspace/Users/[email protected]/etl/load_orders. Jobs refer to notebooks by this path, so renaming or moving a notebook can break a scheduled job that points to the old path. Check Jobs after a reorganization.
Opening a notebook and attaching compute
A notebook is only a document until it is attached to compute. The compute selector is at the top right of the notebook. If it says "Connect" or shows nothing, cells will not run.
When you attach, you pick one of the compute options from an earlier chapter, for example an all-purpose cluster or serverless compute. Three details cause most early confusion:
- A stopped cluster has to start before cells run, which can take several minutes. Serverless usually starts faster.
- Attaching a notebook to a cluster does not move data. The notebook still reads tables by their three-level names.
- The cluster's access mode and the user's permissions together decide what you can read. A notebook that works for a colleague can fail for you because your grants differ.
A quick way to confirm where you are is to run a small cell that reports your identity and default location:
row = spark.sql(
"SELECT current_user() AS me, "
"current_catalog() AS catalog, "
"current_schema() AS schema"
).first()
print(f"User: {row['me']}")
print(f"Catalog: {row['catalog']}")
print(f"Schema: {row['schema']}")If the catalog or schema is not what you expect, relative table names such as orders resolve to the wrong place. Using full three-level names avoids that ambiguity.
Browsing data with Catalog Explorer
Open Catalog to see the Unity Catalog hierarchy. Click a catalog, then a schema, then a table. The table page has several tabs, though names vary slightly by version:
- Columns: names, types, and comments.
- Sample data: a preview of rows. It needs running compute, normally a SQL warehouse.
- Details: owner, storage location, table type (managed or external), and format.
- Permissions: who has which privileges.
- History: the Delta transaction log, the same information as
DESCRIBE HISTORY. - Lineage: upstream and downstream tables and notebooks, where lineage is enabled.
Catalog Explorer only shows objects you have privileges on. If a catalog is missing from the list, the cause is usually a missing USE CATALOG privilege, not a missing catalog. The same listing is available in SQL:
SHOW CATALOGS;
SHOW SCHEMAS IN main;
SHOW TABLES IN main.tutorial;These three statements follow the hierarchy from the top down. They return only what your account can see, so the output can differ between two users.
Finding things with search
The search bar at the top searches workspace objects and, in current versions, data objects too. It matches names and some metadata, not the contents of notebook cells. Search results respect permissions, so something you cannot access will not appear. If a colleague says a notebook exists and search does not show it, ask for its path or a share link and check your permission on its folder.
Workspace, user, and URL
Each workspace has its own URL, and the URL identifies which workspace you are in. Companies often run several (for example development and production), and they look nearly identical. Notebooks, jobs, and compute are per workspace. Unity Catalog data can be shared across workspaces attached to the same metastore, so a table can be visible in both while the notebook that creates it exists in only one. Before assuming something was deleted, check the workspace name in the top corner.
Common errors when navigating
- Notebook cells do nothing. The notebook is not attached to compute, or the cluster is still starting.
- Table not found. The wrong catalog or schema is the current default, or you lack
USE CATALOGorUSE SCHEMA. Use the full name and check privileges. - Cannot edit a shared notebook. You have Can Read or Can Run. Ask the owner, or clone it into your Home folder.
- Job fails after moving a notebook. The job still refers to the old path.
- Sample data will not load. No compute is available, or you lack
SELECTon the table.
Exercise
Exercise
A colleague says the table main.tutorial.orders exists, but you cannot see it in Catalog Explorer, and a notebook in the Shared folder that reads it fails with a permission error. Name two separate permission systems involved and what you would check in each.
Show answer
Table access is controlled by Unity Catalog, so check that you have USE CATALOG on main, USE SCHEMA on main.tutorial, and SELECT on the table (for example with SHOW GRANTS or the Permissions tab). Notebook access is controlled by workspace object permissions, so check your level (Can Read, Can Run, Can Edit) on the Shared folder or notebook. A notebook you can open can still fail if your Unity Catalog grants are missing.
Exercise
You move a notebook from /Workspace/Shared/etl to /Workspace/Shared/archive, and the next scheduled run fails. What is the most likely cause, and where do you fix it?
Show answer
The job still points to the old notebook path. Open the job under Jobs and pipelines, edit the task, and select the notebook at its new path.