> ## 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.

# Providers

> Query any connected Provider at providers.{connector}.{table} and join Providers in SQL.

The **providers** pool holds the data from every Provider that your
Workspace connected. Each Provider is a schema. Each
[data stream](https://developers.askparable.com/connectors/taps.md) becomes one or more tables. You query them
with ordinary SQL over the same Flight SQL connection, and you can join any
of these tables to each other.

Google Workspace directory users are `providers.google.users`. GitHub pull
requests are `providers.github.pull_requests`. Linear issues are
`providers.linear.issues`. You can join a person across these Providers on
email, or through `providers.identity.*` when the emails do not match.

A data stream lands as one or more tables in its Provider's schema. Column
names are the source field names, lowercased (`primaryEmail` becomes
`primaryemail`). Flattened object paths use `__` between segments
(`assignee.email` becomes `assignee__email`). Arrays can become child tables.
[Tap projection](https://developers.askparable.com/connectors/tap-projection.md) explains these rules.

> [!NOTE]
>
> The [catalog](https://developers.askparable.com/data.md#the-catalog) lists a table when its Provider is
> connected and its stream is enabled. It can list the table before the first
> sync writes rows. The examples on this page use common Providers. Use the
> tables and columns that the catalog lists for your Workspace.

## Address a table

```
providers.{connector}.{table}
```

`{connector}` is the Provider's connector slug, such as `google`, `github`,
`linear`, `slack`, `okta`, `workday`, or `salesforce`. A `-` in a slug
becomes `_`. `{table}` is the stream's table name. A child table is
`{table}__{path}`. GitHub issue labels are `providers.github.issues__labels`.

References are fully qualified. There is no `USE` statement or
`search_path`.

Catalog discovery reports each table's logical key and the semantic type of
each column. Read them there instead of guessing from column names.

## Tables of Providers you did not connect

A query can name a table of a Provider that your Workspace did not connect,
or of a stream that it did not enable. That table reads as an empty table
with the columns the Provider declares. SQL written for several Providers
therefore runs in every Workspace.

If the tap declares `captureUnknownFields: true`, the empty table also has
the `raw_unknown_fields` Map column. SQL can name a captured field such as
`raw_unknown_fields['Division']` before the Provider is connected. An
aggregate over that empty table returns zero for `count(*)` and `NULL` for
`max(raw_unknown_fields['Division'])`.

The result schema says what was missing, so your application can show "not
connected" instead of zero:

* `parable.warning.not_connected_providers` names each Provider that is not
  connected.
* `parable.warning.not_enabled_streams` names each stream that is not
  enabled, such as `slack.replies`.

A misspelled table still fails as an unknown table.

## See what you have

List tables, columns, and row counts in the [catalog](https://developers.askparable.com/data.md#the-catalog)
before you assume that a table has rows.

Your connected Providers and their streams are also live in the
[workspace](https://developers.askparable.com/data/workspace.md) pool. This query lists the active Providers:

```sql theme={null}
SELECT id, name, connector_slug, connection_status, has_ever_synced
FROM workspace.providers
WHERE disabled_at IS NULL
  AND (connection_status IS DISTINCT FROM 'disabled')
ORDER BY connector_slug, name
```

This query lists the streams of each Provider and whether each is enabled:

```sql theme={null}
SELECT p.connector_slug, s.name AS stream, s.enabled, s.enabled_since
FROM workspace.provider_connections AS s
JOIN workspace.providers AS p ON p.id = s.provider_id
WHERE p.disabled_at IS NULL
ORDER BY p.connector_slug, s.name
```

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

## Query one Provider

Active Google Workspace users, with org unit and last login:

```sql theme={null}
SELECT
  id,
  primaryemail,
  orgunitpath,
  isadmin,
  lastlogintime
FROM providers.google.users
WHERE suspended = false
LIMIT 10
```

Open Linear issues, most recently updated first:

```sql theme={null}
SELECT
  identifier,
  title,
  priority,
  team__key,
  assignee__email,
  state__name,
  updatedat
FROM providers.linear.issues
WHERE completedat IS NULL
  AND canceledat IS NULL
ORDER BY updatedat DESC
LIMIT 20
```

Open GitHub pull requests in one repository. Parable copies `full_name` from
the repository onto each pull request, so you do not have to join
`repositories`:

```sql theme={null}
SELECT
  number,
  title,
  state,
  user__login,
  draft,
  created_at,
  html_url
FROM providers.github.pull_requests
WHERE full_name = 'acme-corp/billing-service'
  AND state = 'open'
ORDER BY created_at DESC
```

## Read current rows

Every Provider table has state columns beside the Provider's own fields:

| Column | Meaning |
| - | - |
| `dt` | The load day that last wrote the row. |
| `_parable_observed` | `true` when the latest load contained the row. |
| `_parable_last_observed_at` | When a load last contained the row. |
| `_parable_deleted` | `true` when the Provider reported the row deleted. Also `true` when a full load no longer contained the row, but only for a Provider that deletes records by leaving them out. |
| `_parable_deleted_at` | When the row was first marked deleted. |
| `_parable_seal_id` | The load that last wrote the row. |
| `_parable_event_date` | Only on event tables, such as audit logs, and their child tables: the UTC day of the row's event time. Parable partitions the table by it. Null when the row has no event time. |

The catalog marks these as system columns (`system: true`), and the app hides
them unless you turn on **Show system columns**. You can always select them.

On an event table, filter on `_parable_event_date` to read whole days. Parable
then reads only the files of those days:

```sql theme={null}
SELECT *
FROM providers.okta.audit_logs
WHERE _parable_event_date >= DATE '2026-10-01'
  AND _parable_event_date < DATE '2026-10-08'
```

Parable writes a row only when a load changes it. `WHERE dt = '<day>'`
therefore returns the rows that changed that day, not the whole table. To
read the current records, read the whole table and filter on the state
columns:

```sql theme={null}
SELECT id, primaryemail
FROM providers.google.users
WHERE _parable_deleted = false
  AND _parable_observed = true
```

## Join Providers on email

Columns with the `Contact.Email` semantic type hold compatible email values.
You can join them to each other and to `workspace.users.email`. Linear
`email` and Google `primaryemail` are both `Contact.Email` columns:

```sql theme={null}
SELECT
  lu.email,
  lu.name AS linear_name,
  lu.active AS linear_active,
  gu.orgunitpath,
  gu.isadmin,
  gu.lastlogintime
FROM providers.linear.users AS lu
JOIN providers.google.users AS gu
  ON gu.primaryemail = lu.email
```

The same join against Workspace members:

```sql theme={null}
SELECT
  u.email,
  u.name,
  gu.orgunitpath,
  gu.isadmin
FROM workspace.users AS u
JOIN providers.google.users AS gu
  ON gu.primaryemail = u.email
```

People who left in Workday but still have a Google account:

```sql theme={null}
SELECT
  w.email,
  w.businesstitle,
  w.terminationdate,
  gu.id AS google_id,
  gu.suspended,
  gu.isadmin,
  gu.orgunitpath
FROM providers.workday.workers AS w
JOIN providers.google.users AS gu
  ON gu.primaryemail = w.email
WHERE w.isactive = false
```

Open Salesforce opportunities whose owner is suspended in Google:

```sql theme={null}
SELECT
  o.name AS opportunity,
  o.amount,
  o.stagename,
  o.closedate,
  su.name AS owner_name,
  su.email AS owner_email,
  gu.suspended,
  gu.orgunitpath
FROM providers.salesforce.opportunities AS o
JOIN providers.salesforce.users AS su
  ON su.id = o.ownerid
JOIN providers.google.users AS gu
  ON gu.primaryemail = su.email
WHERE o.isclosed = false
  AND gu.suspended = true
```

## Join Providers when emails differ

A GitHub organization member has a `login` and an `id`, but no email. Do not
join the `id` columns of two Providers and expect a person match.

Directory streams feed the `providers.identity` schema. Examples are Google
`users`, Linear `users`, GitHub `members`, Slack `users`, Okta `users`, and
Workday `workers`. The schema appears after at least one directory stream
has synced. Until the Workspace enables a directory stream, a query that
names one of its tables reads an empty table.

| Table | Grain |
| - | - |
| `providers.identity.account` | One row per resolved person (`id`, `name`, `photo_url`). |
| `providers.identity.account_associations` | One row per Provider account linked to a resolved person. `identity_account_id` names the person. |
| `providers.identity.account_merges` | One row per identity merge: `survivor_id`, `merged_id`, `occurred_at`, and `run_id`. |

Each association keeps where the account came from. `connector_slug` names
the Provider, and `account_id` is the Provider's own ID for the account, such
as Google `users.id` or GitHub `members.id`. `account_id_type` is `id`,
`uuid`, or `email`. `email` and `name` are the account's email and name.

An account joins an identity only through an exact link. The link is the
same Provider account ID, the same email, or an external user ID that names
the account. For
example, a Linear user's `githubuserid` links that user to the GitHub member
with that ID. A similar email or an equal name is not a link. One person
whose accounts share no exact link is therefore counted as two identities.
Service accounts and shared mailboxes get identities too.

`match_method` records how the account joined its identity:

| `match_method` | Meaning |
| - | - |
| `canonical` | The account comes from a canonical person source. |
| `account_id_exact` | Its account ID and ID type equal those of an account already in the identity, from the same Provider. |
| `email_exact` | Its email equals the email of an account already in the identity. |
| `external_id` | An external user ID joined its identity to this one. |
| `minted` | No account matched it, so it started the identity. |

Every method is exact, so `match_confidence` is always 1.0. Historical
results can still show `email_local_part`, `email_fuzzy`, or `name_fuzzy`.
Parable no longer writes these values.

Parable recomputes identities each time identity resolution runs. When a run
splits an identity, the part with most of its accounts keeps the `id`. A
stored identity `id` can therefore name a different person later. For a key
that never moves, keep the account's `connector_tap_id` and `account_id`.

Every account linked to a resolved person:

```sql theme={null}
SELECT
  a.id AS identity_id,
  a.name,
  assoc.connector_slug,
  assoc.account_id,
  assoc.account_id_type,
  assoc.email,
  assoc.match_method
FROM providers.identity.account AS a
JOIN providers.identity.account_associations AS assoc
  ON assoc.identity_account_id = a.id
ORDER BY a.name, assoc.connector_slug
```

A Google directory row plus every other account of the same person,
including GitHub members that have no email:

```sql theme={null}
SELECT
  a.name AS identity_name,
  gu.primaryemail,
  gu.orgunitpath,
  assoc.connector_slug,
  assoc.account_id,
  assoc.account_id_type,
  assoc.match_method
FROM providers.google.users AS gu
JOIN providers.identity.account_associations AS g_assoc
  ON g_assoc.account_id = gu.id
 AND g_assoc.connector_slug = 'google'
JOIN providers.identity.account AS a
  ON a.id = g_assoc.identity_account_id
JOIN providers.identity.account_associations AS assoc
  ON assoc.identity_account_id = a.id
```

People linked to more than one account. Start here to see whether identity
coverage is dense enough to join two specific Providers:

```sql theme={null}
SELECT
  a.id,
  a.name,
  COUNT(*) AS linked_accounts
FROM providers.identity.account AS a
JOIN providers.identity.account_associations AS assoc
  ON assoc.identity_account_id = a.id
GROUP BY a.id, a.name
HAVING COUNT(*) > 1
ORDER BY linked_accounts DESC
```

[Provider Pool](https://docs.parable.work/protocols/sql/data-catalog/provider-pool)
describes every identity column.

## Join work items, not only people

Linear issues carry `branchname`. GitHub pull requests carry the head branch
in the flattened `head` object. This join needs no email and no identity:

```sql theme={null}
SELECT
  i.identifier,
  i.title AS issue_title,
  i.state__name AS issue_state,
  i.assignee__email,
  pr.full_name,
  pr.number AS pr_number,
  pr.state AS pr_state,
  pr.html_url
FROM providers.linear.issues AS i
JOIN providers.github.pull_requests AS pr
  ON pr.head__ref = i.branchname
WHERE i.branchname IS NOT NULL
```

Google group owners who are also directory users, with org unit and admin
flag:

```sql theme={null}
SELECT
  gm.email,
  gm.role,
  gm.status,
  gu.orgunitpath,
  gu.isadmin,
  gu.suspended
FROM providers.google.group_members AS gm
JOIN providers.google.users AS gu
  ON gu.primaryemail = gm.email
WHERE gm.role = 'OWNER'
```

`providers.google.groups` is the group list (`id`, `name`, `email`,
`directmemberscount`). Each member row carries its group's ID in `group_id`,
so `gm.group_id = g.id` joins a member to its group.

## Child tables

An array of objects can become a second table, `{table}__{path}`. Each child
row repeats its parent's key in `parent_pk`, as text. GitHub issue labels:

```sql theme={null}
SELECT *
FROM providers.github.issues__labels
LIMIT 10
```

A child table has its own logical key. Do not use `SELECT DISTINCT` on the
parent key to remove rows: the parent key is supposed to repeat.

Some streams also have convenience views:

* `{table}__{path}_with_parent` joins each child row to its parent, such as
  `providers.github.issues__labels_with_parent`. It returns one row for each
  child row whose parent is stored.
* `{table}_nested` puts each child table back into its parent row, as an
  array.

[Tap projection](https://developers.askparable.com/connectors/tap-projection.md) explains child tables and how to
join them yourself.

## Sample a large table

`TABLESAMPLE` reads a sample of a table or a subquery. Use it to try a query,
or an [AI function](https://developers.askparable.com/data/ai.md), on a large table before you run it on every
row:

```sql theme={null}
SELECT * FROM providers.slack.conversations_history TABLESAMPLE BERNOULLI (10 PERCENT) REPEATABLE (42);
SELECT * FROM providers.slack.conversations_history AS m TABLESAMPLE SYSTEM (10);
SELECT * FROM providers.slack.conversations_history TABLESAMPLE (100 ROWS);
SELECT * FROM providers.slack.conversations_history SAMPLE ROW (10) SEED (42);
SELECT * FROM providers.slack.conversations_history TABLESAMPLE (BUCKET 3 OUT OF 10);
```

* A size without a unit is a percentage, from 0 to 100. `BERNOULLI`, `ROW`,
  `SYSTEM`, and `BLOCK` all sample rows.
* Parable keeps a row when a hash of its values and the seed is below the
  percentage. The same seed keeps the same rows of the same data, so two
  samples of one table in one query keep the same rows.
* Without `REPEATABLE` or `SEED`, the seed is 0. A query that samples
  therefore returns the same rows each time. Postgres picks a new seed each
  time instead.
* `(n ROWS)` keeps the `n` rows with the lowest hash.
* `BUCKET k OUT OF n` keeps the rows in the `k`-th of `n` equal ranges. The
  `n` buckets together hold every row once.
* A join of two sampled tables keeps about the product of their percentages:
  10 percent of each keeps about 1 percent of the matches.

`TABLESAMPLE ... OFFSET` and `BUCKET ... ON` are refused with `QL-PL-012`. A
query with a percentage outside 0 to 100, or with a row count, a seed, or a
bucket that is not a whole number, fails before it runs.

## Rows you can read

Provider Policies and source permissions can narrow the rows of a Provider
table for you. [Rows you can read](https://developers.askparable.com/data.md#rows-you-can-read) explains how.

A Provider whose streams describe access, such as file sharing or channel
membership, adds the `providers.access` schema. Parable computes its seven
tables from those streams. They describe who can open each record, including
records that the person who reads them cannot open:

| Table | Grain |
| - | - |
| `providers.access.principals` | One row for each user, group, team, or role that a Provider names. |
| `providers.access.memberships` | One row for each principal and each group, team, or role it belongs to, directly or through nested groups. |
| `providers.access.grants` | One row for each access to a record: who has it, at which level, and why. |
| `providers.access.anchor_tokens` | One row for each record and each token that can read it. |
| `providers.access.reader_tokens` | One row for each verified email and each token it holds. |
| `providers.access.manager_tokens` | One row for each email and each token that a reporting line in the Provider gives it as a manager. |
| `providers.access.freshness` | One row for each Provider: when Parable computed its access, and from which syncs. |

Only people with All data access, and Parable staff with permission to query
your Workspace's data, can read these tables, in SQL that names no Parable.
Each read is recorded. For everyone else, Data
Access members included, the tables are not in the catalog or in
`information_schema`, and a query that names one fails as an unknown table.
Nobody reads them in a Parable or under **View as**. A holder of All data
access finds their columns in `information_schema.columns` over Flight SQL.
[Source permissions](https://developers.askparable.com/connectors/source-permissions.md) explains the
declarations that produce these tables.

## Quality and other pools

Quality checks, SPC, and shape statistics for Provider tables live in
[Quality](https://developers.askparable.com/data/quality.md): the `providers_quality.summary.*` tables, and
history tables such as `providers_quality.google.users__checks`. Identity
tables have no quality history.

A Plot can read Provider tables, and its results appear in
[parables](https://developers.askparable.com/data/parables.md). Published files in [artifacts](https://developers.askparable.com/data/artifacts.md)
join Provider tables the same way as any other table, often on an email
column.


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