Partner sharing
Partner sharing gives another organization read access to a live table without copying it to them or opening your storage. The platform runs its own server for the open Delta Sharing protocol, so a lessor, a vendor or an auditor reads with any standard Delta Sharing client. Each shared table can be limited to some columns and some rows, never shows more than the person who shared it can see, and every read is recorded
ops.share_readsIn the platform today
- The protocol server, shares, recipients, filters, access labels, tokens and read audit run in the platform service, on the demo airline and the ice cream maker
- The stock
delta-sharingPython client reads from it, and a revoked token is refused - The Partner sharing screen in Data manages shares, recipients and tokens and shows the read audit when the app is connected to the service
- The delta response format, streaming and change feed reads beyond the changes endpoint, and OAuth profiles
- Membership of a group in
sharing.managers, or Administrator, to manage shares and recipients - For the person a share names as its sharer: the SQL workspace grant on each source schema, and every access label on the shared data
- A reachable endpoint for partners. The protocol is served under
/delta-sharingon the main API, or on its own endpoint
Shares, schemas and recipients
A share holds schemas, and a schema holds tables. Each shared table points at a gold or objects table in the lake, optionally with a column list, a row filter and permission to read its history. A recipient is a partner with a bearer token for one or more shares. Shares come from ontology.yaml or from the administration API; both end up in the same definitions
sharing:
linkSeconds: 900 # signed file link lifetime
recipientDays: 365 # default recipient expiry
managers: [maintenance-control]
shares:
fleet:
description: Fleet status for the lessor
owner: plan.raman # the sharer: their access limits what is shared
schemas:
fleet:
aircraft: { table: gold.aircraft,
columns: [fleetNumber, registration, aircraftType, status, hours, cycles] }
stations: { table: objects.station, history: true }
vendor-repairs:
description: Repair orders with one overhaul vendor
owner: plan.raman
accessLabels: [COMMERCIAL] # labelled data must be recorded on the share
schemas:
repairs:
repair_orders:
table: gold.repair_orders
# a SQL predicate, or a map such as { vendorId: V-104 }
where: "vendorId = 'V-104'"
columns: [roNumber, partNumber, serialNumber, status, sentDate, promisedDate,
expectedDate]
Governance
| Rule | How it holds |
|---|---|
| Labelled data | A table carries the access label of the object type it is or backs. It can be shared only when the sharer holds that access label and the share lists it in accessLabels. Both are checked again on every read, so a sharer losing an access label, or a share dropping it, stops the table at once |
| The sharer's own view | A share never exceeds its sharer. Their row policy limits the rows, properties hidden from them are left out, and they need the SQL workspace grant on the source schema |
| Filters and column lists | When a table has a filter, a column list or a sharer restriction, the partner never sees the raw table files. The server writes a filtered Parquet snapshot for that recipient and table version and serves that instead |
| Tokens | Shown once, in the profile file, and stored only as a SHA-256 hash. A recipient has an expiry, 365 days by default, and can be revoked or given a new token at any time |
| File links | Links point at the server's own download endpoint, signed with HMAC-SHA256, valid for 15 minutes by default, and tied to the recipient, so revoking a recipient also stops links already handed out |
| Read audit | Every query and change feed read is a row in ops.share_reads and an event in the audit log. Refused reads by known recipients are kept too |
Add a recipient
- Create the recipient. Name the partner and the shares they may read. The response carries the token and a profile file, once
{ "name": "Lessor fleet desk", "shares": ["fleet"], "expiresInDays": 180 }
{
"recipient": { "id": "rcp_01JB…", "name": "Lessor fleet desk", "shares": ["fleet"],
"expiresAt": "2027-04-21T14:02:11Z" },
"token": "mss_…",
"profile": {
"shareCredentialsVersion": 1,
"endpoint": "https://share.example.com/delta-sharing",
"bearerToken": "mss_…",
"expirationTime": "2027-04-21T14:02:11Z"
}
}
- Send the profile. Save
profileas a.sharefile and give it to the partner over a channel you trust. It is the only copy of the token - The partner reads. With any Delta Sharing client, for example the Python one
import delta_sharing
profile = "lessor.share"
client = delta_sharing.SharingClient(profile)
print(client.list_all_tables())
aircraft = delta_sharing.load_as_pandas(profile + "#fleet.fleet.aircraft")
ops.share_reads with filtered true, because the table has a column listProtocol endpoints
The server implements the open Delta Sharing REST protocol with the Parquet response format. Errors use the protocol's own codes, such as RESOURCE_DOES_NOT_EXIST, and a share or table the recipient may not read answers as not existing
| Endpoint | Does |
|---|---|
GET /delta-sharing/shares, /shares/{share} | Shares the recipient may read |
GET …/shares/{share}/schemas, …/schemas/{schema}/tables, …/all-tables | Schemas and tables |
GET …/tables/{table}/version, …/metadata | The table version, schema and partitioning |
POST …/tables/{table}/query | File links for the current version, or a past version or timestamp when the table shares its history |
GET …/tables/{table}/changes | The change data feed between versions, when the table shares its history |
Administration
| Endpoint | Does |
|---|---|
GET, POST /api/v2/sharing/shares | Lists shares, or creates one with its access labels |
GET, PATCH, DELETE /api/v2/sharing/shares/{share} | Reads, changes or removes a share |
POST /api/v2/sharing/shares/{share}/tables | Adds a table with schema, name, table, columns, where and history |
DELETE …/shares/{share}/schemas/{schema}/tables/{table} | Removes a table |
GET, POST /api/v2/sharing/recipients, GET …/{id} | Lists, creates and reads recipients |
POST …/recipients/{id}:revoke, :rotate, :grant | Revokes, issues a new token, or changes the shares a recipient may read |
POST …/recipients/{id}/profile | Issues a new token as a profile file to download; the old token stops working |
GET /api/v2/sharing/reads | Recent reads, by recipient or share |
-- What each partner read this month, and how much
SELECT recipient_name, share, table_name,
count(*) AS reads, sum(rows) AS rows, sum(bytes) AS bytes
FROM ops.share_reads
WHERE status = 'ok' AND read_at >= date_trunc('month', current_date)
GROUP BY 1, 2, 3 ORDER BY bytes DESC;
Limitations
- Responses use the Parquet format only; the delta response format is delivered on request
- Streaming reads are delivered on request. A recipient follows changes through the changes endpoint, and only on tables shared with
history: true - Profiles carry a bearer token. OAuth client credentials profiles are delivered on request
- A filtered table is served as a snapshot file per recipient and version, so the first read of a new version takes longer than an unfiltered one
- Only
goldandobjectstables can be shared - A token is shown once. A lost profile needs a new token, which stops the old one
- The Partner sharing screen, with shares, recipients and the read audit, is in Data, in the workspaces of the demo app connected to the service