# Results

Source: https://userguide.qualytics.io/explore/deep-dive/results/

The results card sits under the query editor. It shows the rows of the last run, the run's details, and the controls to download, reveal, and chart them. A query runs once: scrolling down reads more rows from the same result, without running the query again.

## The Results Card

The bar at the top of the card holds, from left to right:

| Control | What it does |
| --- | --- |
| **Results** , **Chart** , **History** | Switch the card between the rows, a chart of the rows, and the workspace's runs. |
| **Read from** | Shows the datastores the run read. |
| **Show masked values** | Appears when the result has masked columns you may reveal. See [Masked Values](https://userguide.qualytics.io/explore/deep-dive/results/#masked-values). |
| Row count and duration | Opens **Query details**. Shows **Failed** when the run failed. |
| **Download** | Downloads the rows as a `.csv` file, a `.csv` file for Excel, or a `.tsv` file. See [Download](https://userguide.qualytics.io/explore/deep-dive/results/#download). On the **Chart** view, **Download the chart**  takes its place. See [Charts](https://userguide.qualytics.io/explore/deep-dive/charts/#downloads). |
| **Minimize results** | Folds the card down to its bar. **Expand results**  opens it again. |

When the card is narrow, the controls give way step by step: buttons drop their labels (kept in tooltips), the row count shortens, the view chips show icons only, and **Read from** leaves the bar (the datastores still show in **Query details**).

### Results, Chart, and History

- **Results** shows the rows in a grid.
- **Chart** draws the rows loaded so far as a bar, line, or scatter chart. See [Charts](https://userguide.qualytics.io/explore/deep-dive/charts/).
- **History** lists the runs of this workspace, newest first. Starting a new run switches the card back to **Results**. See [History](https://userguide.qualytics.io/explore/deep-dive/history/).

Switching views keeps the grid's scroll position and the chart's settings.

On a table's **Explore** tab, the card is titled **Results** and has no Chart or History view. See [Datastore and Container Tabs](https://userguide.qualytics.io/explore/deep-dive/datastore-and-container-tabs/).

### Read From

The **Read from** chip shows the logos of the datastores the run read, up to three (or two and **+N**). Open it to see each datastore with its location. The workspace's own datastore comes first, with a marker whose tooltip reads `This workspace's datastore`, and clicking a datastore in the list opens its side panel. It helps when a query reads tables of several datastores on the same connection, or when several datastores point at the same database. See [SQL Modes](https://userguide.qualytics.io/explore/deep-dive/sql-modes/).

## Result States

| State | What the card shows |
| --- | --- |
| No run yet | `Run a query to see its results`, `Rows and the run details show here.`, and the shortcut to run. |
| Running | A **Running** row with the datastore it runs on (or `in Spark, reading` the datastore in Qualytics mode), or a **Read from** chip when the query reads several datastores (with `in Spark` before it in Qualytics mode), the elapsed time, and a **Stop the query**  button. In Qualytics mode, a run that takes more than 10 seconds adds `Spark SQL loads each table it reads into Qualytics before the query runs, so it takes longer than running on the datastore.` |
| Rows returned | The rows in a grid. |
| No rows | `No rows returned` with `The query ran, but no rows matched.` |
| Failed | The error, with **Copy error** and **Fix with AgentQ**. See [Errors](https://userguide.qualytics.io/explore/deep-dive/results/#errors). |
| Stopped | `Query stopped` with `Run it again to see its rows.` |
| Cannot run | `Running is not available` with the reason, such as a missing team permission. |

## Row Count

The button on the right of the bar shows how many rows the result holds, then a dot and the run's duration. A spinner appears next to the count while more rows load.

| Label | Meaning |
| --- | --- |
| `N rows` | Every row of the result is loaded. |
| `Showing X of N rows` | The run counted N rows in all, and X are loaded. Scroll to load more. |
| `Showing N rows, more to load` | N rows are loaded, and the run has not finished counting. |
| `... (stopped at the size limit)` | The result ended before the query's last row. The label is the same whatever the cause: the size limit, the most rows your deployment holds at once, the run's row cap, or a read that broke off. |
| `First 100 rows` | On a table's **Explore** tab, the first rows of a table that shows a sample only. |

On a narrow bar the label shortens, for example `2.5M rows`, `100 of 2.5K`, or `100+ rows`.

When every row is loaded, the grid ends with **End of results**.

### How Rows Load

The first 100 rows arrive with the run. As you scroll near the end of the grid, the next rows load from the same result, up to 1,000 at a time. The query does not run again. If a read fails, an error message appears: `Could not read more rows`.

## Query Details

Click the row count to open **Query details**. The panel opens below the button, or above it when there is more room there, and scrolls when the details do not fit:

| Detail | What it shows |
| --- | --- |
| **Workspace** | The workspace the run belongs to. |
| **Datastore** | The datastores the run read. |
| **SQL** | `Source SQL, run on the datastore`, or `Spark SQL, run in Spark over the datastore's containers` in Qualytics mode. |
| **Result** | The outcome: Succeeded or Failed. |
| **Ran** | When the run started. |
| **Duration** | The run's duration. |
| **Rows** | How many rows the result holds. |
| **Columns** | The result's columns with their types, up to six. **+N** opens a searchable list of the rest. |
| **SQL that ran** | The exact SQL of the run, which may be a selection or one statement of the editor. |

See [View Query Details](https://userguide.qualytics.io/explore/how-tos/results/view-query-details/).

## Cells and Columns

### Cell Values

Click a cell to open its whole value in a popup, with **Copy value** and **Copy row as JSON**. A null value shows as *null*.

Right-click a cell for more:

| Action | What it does |
| --- | --- |
| **Open value** | Opens the whole value in a popup. |
| **Copy value** | Copies the cell's value. |
| **Copy row as JSON** | Copies the cell's row as JSON. |
| **Copy column** | Copies the column's loaded values. |

A masked value cannot be copied: **Copy value** and **Copy column** are disabled on a masked column, and its popup reads **Masked**.

### Column Headers

Each column header shows the column's type icon and its name. When the column shows a field of a table unchanged, the header can also show the field's counts:

- **Active checks** : the number of the field's active quality checks.
- **Active anomalies** : the number of the field's active anomalies, in an orange pill.

The type icon, the name, and the counts form one badge. When the field has a profile, the badge draws a border as you point at it, and clicking it opens the field's profile in a side panel (its tooltip reads `Open field profile`, with the counts under it). The side panel steps through the profiles of the result's other columns. From there, the  button on the **Active Checks** and **Active Anomalies** cards opens the field's active checks or active anomalies in a side panel of its own, so the field stays in view. Each of those panels links to the full page.

A column computed by an expression, an aggregate, or a union of different fields has no counts and no profile.

A header can also show:

- **A masked icon** when the column's values are masked.
- **A sort button.**

### Sorting

Click a column's sort button to sort the grid by that column. Sorting orders the rows loaded so far, not the whole result. To sort every row, add `ORDER BY` to the query and run it again.

A masked column has no sort button until its values are revealed.

## Download

**Download**  opens a menu with three file formats:

| Option | Caption | What you get |
| --- | --- | --- |
| **Download as .csv** | `Comma-separated, UTF-8` | A comma-separated `.csv` file. |
| **Download as .csv for Excel** | `Keeps accents and other alphabets in Excel` | A comma-separated `.csv` file marked as UTF-8, so Excel shows accents and other alphabets correctly. |
| **Download as .tsv** | `Tab-separated, pastes cleanly into sheets` | A tab-separated `.tsv` file. |

When more rows are left to load, two choices sit above the formats. Pick one, then a format:

| Choice | Caption | What it downloads |
| --- | --- | --- |
| **Rows loaded (N)** | `Right away` | The rows shown so far, right away. |
| **Whole result** | `Up to 1,000,000 rows` | Every row of the result, including the rows not loaded yet, up to 1,000,000. |

**Whole result** reads every row from the result the run kept, without running the query again. While it reads, a **Preparing the CSV** box shows the progress and a **Stop** button, whatever the format. Stopping the download saves nothing, so a file never holds part of a result by mistake. If the read fails, an error message appears: `Could not download the whole result`.

In every download:

- The columns and rows follow the grid as it was when you asked for the file: its column order and its sort. The whole result is sorted the same way.
- The file is named `export-<workspace name>`, with the format's extension.
- Masked values are written as `***MASKED***` while the result is masked. After **Show masked values**, the result holds the revealed values, so a download made then contains them. Use **Re-mask values** before you download a file you plan to share.
- A value that starts with `=`, `+`, `-`, `@`, a tab, or a carriage return is written with a leading `'`, so spreadsheet apps do not read it as a formula. A plain number such as `-5` stays a number.

The download buttons do not appear when downloads are turned off for your deployment. See [Download Results](https://userguide.qualytics.io/explore/how-tos/results/download-results/).

## Masked Values

A column that shows a masked field, or a value computed from one, comes back masked. Its cells show dots, and its header carries a masked icon. Values a query only uses to filter, join, or count are not shown, so they need no masking. A column that shows whole rows, such as a row turned into JSON or text, counts as showing every masked field of the tables it reads.

On an enrichment datastore, the `RECORD` column of a table that holds source rows stays masked even after a reveal, and it cannot be used to filter or sort. See [Field Masking](https://userguide.qualytics.io/operations/export-operation/deep-dive/field-masking/).

### Show Masked Values and Re-Mask

When you may reveal the masked columns of a result, the bar shows **Show masked values**  with the number of masked columns. It opens a **Reveal Masked Values** confirmation that lists the fields to reveal and the number of records. **Reveal** runs the same query again with the values shown. The editor's text does not matter here: it is the SQL of the shown result that runs again.

Once revealed, the button becomes **Re-mask values** , which runs the query again with the values masked.

Revealing is all or nothing for a result: it works only when you may reveal every masked field the result shows. Otherwise the reveal is refused with `You may not reveal every masked field this result shows. Run it without revealing masked values`, and the values stay masked.

| Team permission on the datastore | Masked fields you may reveal |
| --- | --- |
| **Editor** | Every masked field of the datastore's containers. |
| **Author** | Only masked computed fields you own. You can reveal a result only when every masked column in it is such a field. |
| **Drafter**, **Viewer**, **Reporter** | None. |

Admins can reveal every masked field. The **Manager** role gives no extra right to reveal: it follows the team permission.

Every reveal is attributed to you and written to the masking audit log, with the fields revealed and the SQL that ran. See [Masking Audit Log](https://userguide.qualytics.io/fields/field-status/managing-field-status/masking-audit-log/) and [Reveal Masked Values](https://userguide.qualytics.io/explore/how-tos/results/reveal-masked-values/).

Permissions are checked again each time more rows load. If you lose the right to reveal, the result closes with `You may no longer reveal the masked values of this result. Run it again without revealing them`. If a field the result shows is masked after the run, the result closes with `A field this result shows was masked after it ran. Run the query again`. The same checks run on the first rows, so a change made while the result is still opening closes it too.

## Errors

When a run fails, the card shows the error's title (or `The query failed`), a hint when there is one, and the full message in a box. For example, a query that names a table or column that does not exist shows `The SQL or filter expression is invalid` with `Review and correct it, then try again.` Two buttons follow:

- **Copy error**  copies the message.
- **Fix with AgentQ**  asks the Explore Assistant for a corrected query, which it proposes for you to apply. It appears only when AgentQ is set up with a data level above **Nothing about your data**, on screens wide enough to dock the assistant. See [Explore Assistant](https://userguide.qualytics.io/explore/deep-dive/explore-assistant/) and [Fix a Failed Query](https://userguide.qualytics.io/explore/how-tos/explore-assistant/fix-a-failed-query/).

Refusals from the read-only checks show here too. See [Read-Only Rules](https://userguide.qualytics.io/explore/deep-dive/sql-modes/#read-only-rules).

When the query reads a table with masked fields, a database error is replaced by `The database refused the query. Its message is hidden because the query reads masked fields, and the message could quote their values. Check the SQL, or run it without the masked tables to see the error.` The same text appears in History and in the Explore Assistant.

## How Long a Result Stays

Qualytics keeps each result so you can scroll, download, and chart it without running the query again. A result is private: only the user who ran it can read it, Admins included. Reopening a workspace shows its last result while that result is still kept.

| Limit | What happens |
| --- | --- |
| 30 minutes without a read | The result expires. Reading more rows asks you to run the query again: `This result expired. Run the query again`. |
| 3 open results per user | Opening a fourth closes the one read least recently, with `Closed to make room for a newer result`. The result you open is never the one closed. |
| Open results per deployment (100 by default) | A new run is refused with `This deployment already has 100 open query results. Close a result or try again once one expires.` |
| Size of a result (2 GB by default) | The result ends early, and the row count says `(stopped at the size limit)`. |
| Deleting the datastore | The results of runs on that datastore are deleted with it. |

---

## See Also

- **Charts**

  Bar, line, and scatter charts of the rows loaded so far, charts proposed by AgentQ, and their PNG and PDF downloads.

  [Charts](https://userguide.qualytics.io/explore/deep-dive/charts/)
- **History**

  The runs of each workspace, and the History page where Admins review every query run.

  [History](https://userguide.qualytics.io/explore/deep-dive/history/)
- **Assets**

  The datastores, tables, and fields you can drag into your SQL, and why some of them stay locked.

  [Assets](https://userguide.qualytics.io/explore/deep-dive/assets/)
- **Explore Assistant**

  The AgentQ chat beside each workspace that proposes queries and charts, and helps fix failed queries.

  [Explore Assistant](https://userguide.qualytics.io/explore/deep-dive/explore-assistant/)
- **Datastore and Container Tabs**

  The Explore tab of a datastore, and the Explore tab of a table or file with its fields, filter, and custom columns.

  [Datastore and Container Tabs](https://userguide.qualytics.io/explore/deep-dive/datastore-and-container-tabs/)
- **Examples**

  Questions people answer with Explore, and the queries and settings that answer them.

  [Examples](https://userguide.qualytics.io/explore/deep-dive/examples/)
- **Best Practices**

  Habits that keep queries fast, results trustworthy, and masked data protected.

  [Best Practices](https://userguide.qualytics.io/explore/deep-dive/best-practices/)
- **Permissions**

  The user roles and team permissions behind running SQL, revealing masked values, and reviewing history.

  [Permissions](https://userguide.qualytics.io/explore/deep-dive/permissions/)
- **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.

  [How Explore Works](https://userguide.qualytics.io/explore/deep-dive/how-it-works/)
- **Workspaces**

  The saved, private places that hold each query, its datastore, and its last result.

  [Workspaces](https://userguide.qualytics.io/explore/deep-dive/workspaces/)
- **SQL Modes**

  Running a query on the datastore in its own SQL, or in Qualytics with Spark SQL, and what each mode can read.

  [SQL Modes](https://userguide.qualytics.io/explore/deep-dive/sql-modes/)
- **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.

  [Query Editor](https://userguide.qualytics.io/explore/deep-dive/query-editor/)

*Last updated: November 24, 2026.*
