> ## Documentation Index
> Fetch the complete documentation index at: https://developers.askparable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quality

> Quality checks, SPC, shape, and table health live at providers_quality.summary.* and in per-table history tables.

Quality is a companion catalog, `providers_quality`. It is not a fifth data
pool. Provider tables in [providers](https://developers.askparable.com/data/providers.md) hold the records.
Quality holds measurements about those tables: quality checks, statistical
process control (SPC), shape statistics, and health.

Read the latest results across the Workspace, or the history of one table:

| Surface | Address | Use it for |
| - | - | - |
| Latest results | `providers_quality.summary.{table}` | Workspace-wide health, failed checks, SPC breaches, and shape. |
| History of one table | `providers_quality.{connector}.{table}__{suffix}` | How a measurement changed across runs. |

Only main Provider tables have quality results. Identity tables
(`providers.identity.*`), [artifacts](https://developers.askparable.com/data/artifacts.md), and
[parables](https://developers.askparable.com/data/parables.md) do not.

The Provider Pools Reader, Data Access, and Workspace Administrator roles can
query this catalog. Each row describes one Provider table's rows, so the
controls that narrow that table also apply here
([Rows you can read](https://developers.askparable.com/data.md#rows-you-can-read)):

* If a Provider Policy hides or narrows a table for you, you get none of its
  summary rows, and its history tables read as empty.
* If source permissions narrow a table for you, the same applies. While the
  Workspace enforces source permissions, that covers each table whose Provider
  says who can open each row, unless a Policy rule gives your role All rows
  on it.
* People with All data access get every row.

Run the SQL below over Flight SQL. [Query the pools](https://developers.askparable.com/data.md#query-the-pools)
has the clients for each language.

## What each measurement is

### Quality checks

A quality check compares a Provider table with a threshold from its stream's
quality settings. Each row is one check on one table.

| Status | Meaning |
| - | - |
| `PASS` | The measurement met its threshold. |
| `FAIL` | The measurement broke its threshold. |
| `SKIPPED` | The check could not run. For example, the table has no column with the role the check needs, or no evaluation window. The evidence names what was missing. |

`SKIPPED` is not a pass. It means that the check did not evaluate.

| Check ID | What it measures |
| - | - |
| `null_rate` | Null rate of required columns against `maxRate`. |
| `dupe_rate` | Duplicate rate on the logical business key against `maxRate`. |
| `timestamp_coverage` | Event-time values inside the expected window against `minRate`. At promote, the expected window is the load's request window. For a stream that reads earlier days again on each run, that window starts before the day the load seals. |
| `temporal_order` | Rows where `effective_from` is after `effective_to`, against `maxViolations`. |
| `no_future_timestamp` | Metadata timestamps in the future against `maxViolations`. |
| `timeline_gaps` | Gaps in event time against `maxGapDays`. |
| `string_pattern_rate` | Values that match a pattern against `maxRate`. |
| `referential_integrity` | Orphan rate to a referenced column against `maxOrphanRate`. |
| `row_count_not_suspicious` | The row count is not one of the configured suspicious values. |

Checks run at two times. The `lifecycle` column tells you which:

| Lifecycle | Rows checked |
| - | - |
| `promote` | The rows that one load wrote. |
| `cadence` | The whole table, on a schedule. |

A `promote` pass can exist beside duplicates across loads. Use the latest
`cadence` result to judge the whole table. Only an observed `dupe_rate` of
zero proves that a key is unique. An event or history table can hold several
records for one entity, so check the table's grain before you call a
repeated ID a defect.

### Statistical process control

SPC is a Shewhart control chart on series that Parable tracks, such as row
count and the null percentage of a column. It adds to the quality checks. It
does not replace them.

| Series status | Meaning |
| - | - |
| `IN_BOUNDS` | The latest point is inside the warning limits. |
| `WARNING` | The latest point is outside two sigma but inside three sigma. |
| `OUT_OF_BOUNDS` | The latest point is outside the three-sigma control limits. |
| `INSUFFICIENT_HISTORY` | The series has fewer points than the configured minimum. |

Tracked series kinds include `TABLE_ROW_COUNT`, `COLUMN_NULL_PCT`,
`COLUMN_VALIDATION_FAILURE_PCT`, `COLUMN_DISTINCT_COUNT`, and `COLUMN_AVG`.

### Shape and health

Shape statistics record measurements such as row count, column count, and
size in bytes. Distinct counts are approximate. A very large table is
measured from a sample of its files. Its `sampled_row_count` is then the
number of rows read, and its `distinct_count` is null.

Health is the catalog's state for a table: its state, the reason, and its
watermark.

## Latest results across the Workspace

Start here. Each summary table holds the current result for each Provider
table.

| Table | Contents |
| - | - |
| `providers_quality.summary.quality_checks` | The latest quality check per table and lifecycle. |
| `providers_quality.summary.spc_results` | The latest SPC series per table. |
| `providers_quality.summary.table_stats` | The latest row, column, and byte counts. |
| `providers_quality.summary.table_health` | Health state, reason, and watermark. |
| `providers_quality.summary.table_commits` | Each table's newest version and when it was committed (`committed_at`). |

`connector` and `table_name` are the schema and table of the Provider table's
SQL address. The row for `providers.google.users` has `connector = 'google'`
and `table_name = 'users'`.

Failed checks for Google Workspace:

```sql theme={null}
SELECT
  connector,
  table_name,
  lifecycle,
  check_id,
  check_status,
  observed,
  threshold,
  comparator,
  captured_at
FROM providers_quality.summary.quality_checks
WHERE connector = 'google'
  AND check_status = 'FAIL'
ORDER BY captured_at DESC
```

`observed` is the measured rate or count. `threshold` is the configured
limit. `comparator` is how Parable compared them.

Every check that did not pass:

```sql theme={null}
SELECT
  connector,
  table_name,
  lifecycle,
  check_id,
  check_status,
  observed,
  threshold
FROM providers_quality.summary.quality_checks
WHERE check_status IN ('FAIL', 'SKIPPED')
ORDER BY connector, table_name, lifecycle, check_id
```

SPC series with a warning, a control-limit breach, or a recorded violation:

```sql theme={null}
SELECT
  connector,
  table_name,
  series_id,
  series_kind,
  latest_value,
  mean,
  stddev,
  series_status,
  overall_status,
  captured_at
FROM providers_quality.summary.spc_results
WHERE has_violations = true
   OR series_status IN ('WARNING', 'OUT_OF_BOUNDS')
ORDER BY captured_at DESC
```

Largest Provider tables by row count:

```sql theme={null}
SELECT
  connector,
  table_name,
  row_count,
  column_count,
  total_byte_size,
  captured_at
FROM providers_quality.summary.table_stats
ORDER BY row_count DESC
LIMIT 20
```

Tables with stale watermarks:

```sql theme={null}
SELECT
  connector,
  table_name,
  health_state,
  health_reason,
  watermark,
  watermark_stale,
  computed_at
FROM providers_quality.summary.table_health
WHERE watermark_stale = true
```

When each Provider's tables last changed. Filter `table_commits` on
`connector`, so the query reads only those Providers' history:

```sql theme={null}
SELECT connector, max(committed_at) AS last_commit_at
FROM providers_quality.summary.table_commits
WHERE connector IN ('google', 'linear')
GROUP BY connector
```

A compaction or a VACUUM also commits a version, so this time can be newer than
the data. To read when a connection's newest load arrived, read
`workspace.stream_data.last_data_at`.

## History for one table

Each suffix holds one kind of result:

| Suffix | History of |
| - | - |
| `__checks` | Quality checks, one row per check per run. |
| `__spc` | SPC series, one row per series per run. |
| `__stats` | Shape statistics. |
| `__runs` | Compaction runs, one row per run, a skipped run included. These are not quality scores. Compaction runs from 2026-07-24 until PARABLE-9150 have no rows. |

Recent checks for Google Workspace directory users:

```sql theme={null}
SELECT
  captured_at,
  check_id,
  check_status,
  observed,
  threshold,
  lifecycle,
  overall_status
FROM providers_quality.google.users__checks
ORDER BY captured_at DESC
LIMIT 20
```

How row-count SPC for that table moved:

```sql theme={null}
SELECT
  captured_at,
  series_id,
  series_kind,
  latest_value,
  mean,
  upper_control3_sigma,
  lower_control3_sigma,
  series_status
FROM providers_quality.google.users__spc
WHERE series_kind = 'TABLE_ROW_COUNT'
ORDER BY captured_at DESC
LIMIT 20
```

History tables keep every run. They can also have `result_id`, `run_id`,
`evidence_json` for checks, and `violations_json` for SPC, when you need the
detail behind a status.

> [!NOTE]
>
> A history table can hold a status in mixed case, such as `Fail` or
> `OutOfBounds`, or in uppercase, such as `FAIL` and `OUT_OF_BOUNDS`. Summary
> tables always use uppercase. If a history query returns no rows, look at
> the values in the table before you filter on one casing.

## Read quality over the Workspace API

The Workspace API returns the same latest results as JSON:

| Results | Operation |
| - | - |
| Quality checks | `GET /api/catalog/table-quality-results` |
| SPC results | `GET /api/catalog/table-spc-results` |
| Shape statistics | `GET /api/catalog/table-shape-stats` |
| Row count, size, latest quality result, and freshness | `GET /api/v2/catalog/table-stats` |

```bash theme={null}
curl "$PARABLE_API_URL/api/catalog/table-quality-results?limit=20" \
  -H "Authorization: Bearer $PARABLE_API_TOKEN" \
  -H "X-Tenant: $PARABLE_WORKSPACE"
```

The quality, SPC and shape operations return one page at a time, in Tap
order:

* `limit` is 20 by default and 100 at most. A page also stops before 40,000
  characters of results, but it always holds one.
* `tenantConnectorTapId` keeps only the results of one Tap.
* `nextOffset` in the answer is the `offset` of the next page. The last page
  has no `nextOffset`.
* `driftingOnly=true` on the SPC operation keeps only the series in
  `WARNING` or `OUT_OF_BOUNDS`, and only the tables that have one.

The [API Reference](https://developers.askparable.com/api-reference/overview.md) has the response of each
operation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.