The Database Explorer is the panel on the left of the Editor. Use it to find a database, table or column and put its name into your query without typing it from memory.
The explorer is open the first time you open the Editor. While it is expanded, its header shows the title Query Editor.
The explorer lists the databases of one role at a time. The Role control at the top of the explorer shows the active role's name, or No Role when no role is active.
The explorer, autocomplete and AI suggestions all use the role you pick. See SQL dialect and data scope for what the role changes.
If your user has no roles, the Role control does not appear.
Expand All and Collapse All are unavailable while the list loads or updates, and when no databases are shown. If your role has PII_ databases, they are listed after the other databases.
Matching databases open. A table opens when one of its columns matches, so the matching column is visible.
| Row | What goes into the query |
|---|---|
| Database | The database name. |
| Table | The database name, a dot, and the table name in double quotes, for example database.. |
| Column | The column name in double quotes. Double-clicking a column also inserts it. |
Table and column names are always wrapped in double quotes. Quotes keep names with capitals, spaces or special characters valid in the query.
Point at a table and click the icon just before Insert into editor. This is the table's popup button. Its tooltip reads Opens Warehouse table in popup for a database whose name ends in _WH, and Opens Lake table in popup for every other database.
For Lake tables, see Configure a table. For Warehouse tables, see Warehouse workspace tour.
Click Refresh Schema in the explorer's toolbar to reload the list of databases, tables and columns. The button is greyed out and its icon spins while the panel is loading or updating.
The explorer keeps the list for about five minutes after it loads. A table you have just added may not appear until you click Refresh Schema.
For the full list of messages, see Editor troubleshooting.
| Setting | What it does | Default |
|---|---|---|
| Explorer | Shows or hides the explorer panel. | Shown. |
| Width | Sets how wide the explorer is, between 15% and 35% of the Editor's width. | 20%. |
| Role | Picks the role whose databases the explorer lists. | The role you last picked in this browser. If you have not picked one, your first role. |
The explorer's open or closed state, its width and the role you pick are remembered in this browser, not on your account.
To see tables in the explorer, your role needs at least one of these permissions from the Data Layer category:
Without any of them, the explorer shows You don't have permission to view tables.
To open the Editor at all, your role needs Execute Query or Add/Remove Consoles from the Query Editor category. These are separate permissions, so you can open the Editor and still be unable to see its tables. Administrators set permissions in Roles and permissions.
PII_ versions when they exist.The selected role has no Lake or Warehouse database with tables you can see. Choose another role in Role, or ask an administrator to give the role table access in Roles and permissions.
Your role has none of View Lake Objects, View Warehouse Objects or View WriteBack Objects. Ask an administrator to add one of them. Being able to open the Editor does not give you this permission.
Click Refresh Schema. The explorer keeps the list for about five minutes, so a new table can take that long to appear without it.
Yes. Click Search and type the column name. The search covers all tables of the selected role, and it also matches database names, table names and column types. It ignores letter case.
Double quotes keep names with capitals, spaces or special characters valid in the query. The explorer adds them to every table and column it inserts.
Yes. Click the table's popup button, just before Insert into editor. It opens that table in the Lake or Warehouse popup, and its tooltip tells you which one.
They are the tokenised mirrors of your role's Lake and Warehouse databases, and they appear in the list after the other databases. For how personal data is handled, see PII detection.
The Role control appears only when your account has roles. If you have no roles, it is hidden. Ask an administrator to assign you a role. See Roles and permissions.