Datastore and Container Tabs¶
Explore is not only a page of its own. Every datastore and every container (table, view, or file) has an Explore tab, so you can query data from where you are already looking at it. The two tabs work differently:
| Tab | What you write | What it is for |
|---|---|---|
| Datastore Explore tab | Free SQL, in the same editor as the Explore page. | Querying a datastore without leaving it. |
| Container Explore tab | No SQL editor. You pick a filter, custom columns, and the columns to show. | Looking at a container's rows, filtering them, and trying out derived columns. |
The Datastore's Explore Tab¶
The datastore's Explore tab is the Explore page scoped to one datastore. It has the same workspaces, editor, SQL modes, results, Chart, History, Stop, Format, and Save as computed table. See Workspaces, Query Editor, and Results.
The Datastore Is Locked¶
The datastore button in the editor is locked, so you cannot point a workspace at another datastore from here. A workspace keeps its own datastore: one created on the tab, or one with no datastore yet, takes the page's, and one on another datastore of the same database keeps that datastore.
Locking the datastore does not limit what the SQL can read. In the datastore's own SQL, a query can still read other datastores that share its connection, as on the Explore page. See SQL Modes and Read Another Datastore.
Which Workspaces Are Listed¶
The tab lists your workspaces whose datastore points into the same database as the page's datastore, on the same connection. For engines that read every database of a connection (such as Snowflake or BigQuery), that is every datastore of the connection. Workspaces on other databases stay on the Explore page.
The workspaces are the same ones the Explore page shows, not copies. A workspace created, renamed, or edited on the tab shows the change on the Explore page, and the other way round. Runs made on the tab appear in the workspace's History.
The Workspaces Panel¶
The panel on the left has two views, Workspaces and Assets. Assets lists the datastore's tables and fields, ready to drag into the SQL. A search button above the panel searches the view that is open.
| Control | What it does |
|---|---|
| Collapse panel | Folds the panel into a slim bar, leaving more room for the editor and results. |
| Expand panel | Opens the panel again. |
The slim bar stays usable. It keeps an Assets button that opens the tables in a flyout, a New workspace button, and one icon per workspace (hover one to see its details, select it to open it). Your browser remembers whether the panel is collapsed. On narrow screens the panel has no room, so the workspace list opens from a Workspaces button above the editor instead.
The Explore Assistant docks on the right of the tab.
Permissions on the Datastore Tab¶
The tab appears for anyone who can open the datastore. Saving a workspace on the datastore needs the Viewer team permission or higher. Running a query needs the Author team permission or higher on every datastore the query reads. The Admin role can run queries on every datastore.
The Container's Explore Tab¶
The container's Explore tab replaces the earlier Data Preview tab. Links to the old preview open this tab. It shows the container's rows, with a builder in place of an SQL editor: the rows always come from this container, and you shape them with a filter, custom columns, and hidden columns.
Opening the tab needs the Viewer team permission or higher on the datastore. Without it, the tab does not appear.
Container Workspaces¶
The tab has its own workspaces, separate from the SQL workspaces of the Explore page. Each one keeps its filter, custom columns, hidden columns, and Explore Assistant chat. They are personal, like every workspace, and belong to this container only.
- Preview is the default workspace. It is created the first time you open the tab, leads the list with a Default mark, and cannot be renamed or deleted. It can be duplicated.
- You can add more workspaces with New workspace, and rename, duplicate, or delete them. Deleting the workspace you have open opens Preview.
A workspace runs as soon as you open it, so its rows show right away. It does not run again on its own when you come back to it in the same visit.
The Builder¶
The builder reads as an SQL statement, one clause per row:
| Row | What it holds |
|---|---|
| SELECT | Chips for the container's fields, with their types and computed or masked marks. As many as fit show on one row. +N fields lists the rest, in Assets or, on narrow screens, in a menu. Every field is read. |
| CUSTOM | Your custom columns and an Add Field button. Shown only with the Author team permission or higher. |
| FROM | The container's name, with a lock. Workspaces on this tab always read this container. |
| WHERE | The filter on the rows, with a Clear the filter button once it holds a condition. |
Custom Columns¶
A custom column adds a derived value to every row without saving anything to the container. Add Field adds a column named custom_1 (or the next free number). Selecting its chip opens its settings:
- Name: letters, digits, and
_, not starting with a digit. It cannot repeat the name of another column of the results, whatever the letter case. - Expression: a Spark SQL expression over the row, such as
price * 0.9. It reads the fields of its own row only, so it cannot hold a query or a subquery. A custom column can read the custom columns before it. - Remove deletes the column. The small close button on the chip does the same.
- Save as Computed Field turns the column into a computed field. See below.
- Done closes the settings.
Hovering a chip shows its expression. A workspace holds up to 50 custom columns. A custom column that reads a masked field is masked too.
Custom columns need the Author team permission or higher on the datastore. A workspace that has custom columns cannot run for a user without that permission, and Run says why.
Filtering Rows¶
The WHERE field takes the body of a WHERE clause, without the keyword. For a database datastore the filter runs at the source, and Qualytics checks it before sending it, so write a condition that reads the same in Spark SQL and in the datastore's own SQL. For a file datastore it is written in Spark SQL. Autocomplete suggests fields and functions in the language the filter runs in. The hint below the field says what it takes:
- Database datastore:
A condition in SQL that both Spark and <connector> read, for exampleA condition in SQL that both Spark and PostgreSQL read. - File datastore:
A Spark SQL condition.
The filter reads the container's own fields: computed fields cannot be used in it. Ctrl + Enter (Cmd + Enter on Mac) in the field runs the workspace.
Once the field holds a condition, a Clear the filter button appears beside it. Its tooltip reads Clear the filter and run again: it empties the field and runs the workspace, so the grid shows the unfiltered rows.
When a filter or a custom column names a column the container does not have, the read fails with an error that asks you to review and correct the SQL. Without a filter or custom columns, the tab reads only synced fields, so a missing one asks you to sync the datastore instead.
To write a filter step by step, see Filter Rows.
Hiding Columns¶
Fields in the results bar lists the columns of the results, custom columns included, with Show All, Hide All, and a search. Hiding a column only hides it from the grid: every field is still read, so nothing runs again, and the generated SQL still reads it with SELECT *. Hidden columns are saved with the workspace. See Hide Result Columns.
View SQL¶
View SQL opens the Generated SQL panel: the statement the builder stands for: SELECT * with its custom columns, the container, and the filter. Copy copies it, for example to start a workspace on the Explore page from it.
How Many Rows You See¶
The tab reads the first 100 rows. On most sources, more rows load as you scroll down the grid:
- Tables and views of database datastores.
- Plain files of file datastores (such as CSV, JSON, or Parquet), Delta tables, and Iceberg tables.
- Hive, AWS Glue, Unity Catalog, and MongoDB native datastores.
On partitioned tables of these sources, rows can come newest partition first rather than in the source's own order.
The grid stops at the first 100 rows, and reads First 100 rows, in these cases:
- The source does not support loading more: an Excel file, a computed file, or a source not listed above.
- The container has a computed field built on a window or an aggregate function.
- The container is a computed join.
- The filter cannot be read a page at a time, such as a filter with a random function like
rand(). - A custom column cannot be read a page at a time, such as one built on a window function.
A capped read looks complete
First 100 rows reads the same whether the container holds exactly 100 rows or the read stopped at 100. The tab does not say that more rows exist. To read more of a table or file in one of these cases, query it from a workspace on the Explore page or the datastore's Explore tab. A computed join cannot be read by either SQL mode. Query its source tables and write the join in your own SQL instead, which works when one query can read all of them: tables on the same connection in the datastore's own mode, or containers of the same datastore in Qualytics mode. See SQL Modes.
Sorting a column of the grid sorts only the rows loaded so far.
What the Tab Leaves Out¶
Compared with an SQL workspace, the container tab has a plain Run button and a results card titled Results. It has:
- No Stop.
- No Chart and no History tabs.
- No records in History: rows read on this tab are not recorded as runs.
Results still offer the rest: a download as CSV, the column header badges, and Show masked values for users allowed to reveal them. In each column header, the field's type icon, its name, and its counts of active checks and active anomalies form one badge. On a profiled field, clicking the badge opens the field's profile in a side panel (its tooltip reads Open field profile), which steps through the container's other profiled fields. Custom columns have no profile. See Results. Admins also get a link to the container's masking audit log.
Save as Computed Field¶
Save as Computed Field keeps a custom column for good. It opens the computed field form filled in with the column's name and expression, as a custom expression. Once you save the field, the custom column leaves the workspace and the workspace runs again, so the saved computed field shows as one of the container's own columns. See Save a Custom Column as a Computed Field and Computed Fields.
The button shows only for users who can create computed fields (the Author team permission or higher) and only on a container that has been profiled.
Permissions on the Container Tab¶
| Action | Needs |
|---|---|
| Open the tab, see its rows, filter them, hide columns, view the generated SQL | Viewer team permission |
| Create, rename, duplicate, and delete container workspaces | Viewer team permission |
| Add custom columns, and run a workspace that has them | Author team permission |
| Save a custom column as a computed field | Author team permission, on a profiled container |
| Reveal masked values | Editor team permission. Author reveals only masked computed fields they own. |
| Open the masking audit log from the results | Admin role |
The Admin role has every team permission on every datastore. For all of Explore, see Permissions.
See Also¶
-
Examples
Questions people answer with Explore, and the queries and settings that answer them.
-
Best Practices
Habits that keep queries fast, results trustworthy, and masked data protected.
-
Permissions
The user roles and team permissions behind running SQL, revealing masked values, and reviewing history.
-
How Explore Works
What a run is, how rows load as you scroll, how a run ends, and the limits that apply to every result.
-
Workspaces
The saved, private places that hold each query, its datastore, and its last result.
-
SQL Modes
Running a query on the datastore in its own SQL, or in Qualytics with Spark SQL, and what each mode can read.
-
Query Editor
The editor's controls: the datastore, the SQL badge, autocomplete, running a statement or a selection, formatting, and saving a computed table or file.
-
Results
The results grid, row counts, query details, cell values, masked values, and downloads.
-
Charts
Bar, line, and scatter charts of the rows loaded so far, charts proposed by AgentQ, and their PNG and PDF downloads.
-
History
The runs of each workspace, and the History page where Admins review every query run.
-
Assets
The datastores, tables, and fields you can drag into your SQL, and why some of them stay locked.
-
Explore Assistant
The AgentQ chat beside each workspace that proposes queries and charts, and helps fix failed queries.