For the complete documentation index, see llms.txt. This page is also available as Markdown.

Workbench

Connect to a source, run SQL, and inspect the actual values in Workbench.

Once the metadata looks promising, validate the data itself. Workbench connects to a source, runs SQL, views results, and lets you browse schemas and tables from one workspace. Use it before you commit a dataset to a model, a report, or an application.

What is in Workbench

Area
What it is for

Workbench home

Create a new bench, open a saved one, or pick up a draft

New bench setup

Choose the data source and the Secret to connect with

Query workspace

Write SQL, run queries, browse schemas and tables, inspect results

1. Open Workbench and start a bench

Open Workbench from the left navigation. The home page shows your saved benches. From here you can:

  • Create a new bench.

  • Reopen unsaved benches.

  • Return to a previous one.

Click New bench to start.

2. Pick a source and a Secret

Choose the data source (Depot) from the list (filter by type, owner, or date). Then choose the Secret Workbench connects with.

Workbench needs both. A single Depot can have several Secrets, each representing a different permission context, so it cannot safely pick one for you. Choose the Secret that matches what you intend to do. Purposes are labels defined for the Secrets when you register the Depot, so the ones you see depend on that Depot. Common ones:

Purpose
Use it when

query

You only need to query and explore

scan

You need metadata scanning or schema discovery

rw

You need read-write access and have permission for it

full

Custom label: the credential has complete access to the data source.

masked

Custom label: the credential masks some of the data.

Workbench can also query through a Minerva resource. Select the Minerva resource as the query engine; each Depot it declares appears as a catalog, so you address tables as catalog.schema.table. You need the Can Use Minerva permission on that resource and access to each Depot. See Minerva and Querying (Minerva) in References.

When you share a bench, the selected Secret sets the permission context others inherit. As a bench owner, you can choose a masked, read-only Secret so others explore without seeing sensitive fields.

3. Browse, then query

With the source and Secret selected, the bench opens. The left panel shows the source's schemas, tables, and columns. Expand a schema, select a table, and read its columns and types. Look for identifier fields, categorical fields, possible measures, and fields that will need filtering or transformation. Decide what is relevant before you write SQL.

Type your query into the editor and run a cell, or Run all for every cell. The execution time and returned rows tell you whether the query did what you expected.

4. Refine with cell references

After the first result, iterate. You can run the next query against the source, or run it locally against the previous cell's output using a cell reference. Cell references skip the round trip to the source, so they are faster and cheaper. Add a cell and click the cell-reference icon to enable it.

Cell references run locally. Performance scales with dataset size and your machine's memory.

5. Work across benches and save

Each bench is a tab. Open several to compare sources or tables, or to keep drafts separate from validated queries. Unsaved benches stay around until you close or save them. Save a bench when you want to continue later, prepare a query for downstream work, or share the exploration.

What is next

Outcome
Next action

Keep exploring

Inspect more tables, columns, or values

Use it in a build

The dataset supports a reusable use case. Go to Productize.

Try another source

The selected source does not have the data you need

Source the data first

The data is not yet reachable by your engine. See Move.

Last updated

Was this helpful?