Delta Sharing
Delta Sharing lets other tools read catalog tables straight from Flowfile, without copying files or opening up your storage. Flowfile speaks the open Delta Sharing protocol, so pandas, Spark, Power BI, Tableau, DuckDB, Databricks and anything else with a Delta Sharing connector can read a table you share. This page covers what can be shared, creating a share, giving someone access with a profile file, and reading it from other tools.
How it works
- A share is a named set of catalog tables. Inside a share each table has a schema and a table name, so a recipient addresses it as
share.schema.table. - A recipient is an API consumer: the same service accounts whose keys call published flows. Grant a consumer a share, and every key it holds can read that share.
- A profile file (
<share>.share) holds the server's address and a new key for the consumer. Recipients point their tool at the file. - When a tool reads a table, Flowfile answers with the table's schema and a short-lived download link for each data file. The tool downloads the Parquet files itself. Flowfile reads only the table's Delta log, never the rows.
Recipients only read. They see the tables of the shares their consumer is granted and nothing else.
What can be shared
| Table | Shared |
|---|---|
| Delta table in a catalog on local disk (such as General) | Yes. Flowfile serves the files itself through signed links |
| Delta table in a catalog on S3 or an S3-compatible store | Yes, when the catalog's storage connection holds an access key (presigned S3 links) |
| Delta table in a catalog on Azure Data Lake | Yes, when the connection uses an account key (a read-only link to each file) |
| Catalog on an Azure connection that signs in with a SAS token | No: every link would carry that token, with its rights, its scope (often the whole container) and its own expiry |
| Table on Google Cloud Storage | Not yet |
Catalog on a connection that signs in as the server (aws-cli, iam_role, env_vars, managed_identity) |
No: Flowfile never signs links with the server's own credentials |
| Virtual table | No. Write it to a table first |
| Table in a catalog kept elsewhere (Iceberg) | No |
| Table with deletion vectors or column mapping | No: the protocol's Parquet format cannot express them |
You can add a table only if you manage it. A table that is deleted, that the share's owner no longer manages, or whose catalog's connection can no longer sign links (switched to a SAS token, say), disappears from the share at once; the share's drawer says why. Recipients then get "does not exist".
Create a share
- Catalog → APIs tab → Delta Sharing.
- Type a name under New share and press Create. The name is part of the recipient's URLs, so use letters, digits,
_and-. - In the share's drawer, pick a table under Tables and press Add. It is shared as
<schema>.<table>, using the names it has in the catalog. - History (on by default) lets recipients read earlier versions of the table. Turn it off to serve only the current version.
You can also start from a table's own page: Share → Outside Flowfile (Delta Sharing)… adds the table to one of your shares or to a new one, and lists the shares that already hold it. In the share's drawer, the table picker takes several tables at once; a table that cannot be shared is left out with its reason, and the rest are added.
Give someone access
- Create a consumer under APIs → Consumers if you do not have one, for example
partner-bi. - In the share's drawer, pick the consumer under Recipients and press Grant.
- Press Profile file next to the consumer. Check the endpoint, optionally set an expiry in days, then press Create profile.
- Press Save <share>.share and send the file to the recipient.
The key inside the file is shown only once. Anyone holding the file can read every share the consumer is granted, so treat it like a password. To revoke access, disable or delete the key or the consumer under Consumers, or revoke the share in the share's drawer. Revoking takes effect on the next request; download links already handed out keep working until they expire (one hour by default, see below).
The endpoint
The profile's endpoint is the address recipients reach Flowfile at, followed by /delta-sharing. By default it is the address your browser uses. On the desktop app that address is 127.0.0.1, which only works on your own machine. On a server, give the address other machines use, or set it once for everyone:
FLOWFILE_DELTA_SHARING_ENDPOINT=https://flowfile.example.com/api/delta-sharing
With the bundled Docker setup the protocol lives under the frontend's /api/ path, for example https://flowfile.example.com/api/delta-sharing. Serve it over HTTPS whenever recipients connect over a network you do not control: the bearer token travels with every request.
Read a shared table
pandas and Python
# pip install delta-sharing
import delta_sharing
profile = "retail.share"
print(delta_sharing.SharingClient(profile).list_all_tables())
df = delta_sharing.load_as_pandas(f"{profile}#retail.default.orders")
earlier = delta_sharing.load_as_pandas(f"{profile}#retail.default.orders", version=3)
Spark
df = spark.read.format("deltaSharing").load("retail.share#retail.default.orders")
Power BI
- In Power BI Desktop, open Get data and search for Delta Sharing.
- Paste the profile's
endpointas the server URL. - When Power BI asks how to sign in, choose Authentication in the left column, not OAuth, and paste the profile's
bearerToken.
Flowfile signs recipients in with the bearer token only. With OAuth selected, Power BI looks for an OpenID discovery document at the endpoint, finds none, and reports "Invalid JSON format in discovery document". If Power BI keeps using OAuth for the endpoint, select it under File → Options and settings → Data source settings, press Clear Permissions and connect again.
An endpoint on localhost or 127.0.0.1 is reachable only from the machine Flowfile runs on, so give the profile another address before publishing to the Power BI service. Each preview and refresh lists the share, schema and table again and asks for the file list before downloading, so a refresh takes several seconds even for a small table.
Tableau, Databricks
Choose the Delta Sharing connector and give it the endpoint and the bearer token from the profile file.
What is served
| Request | Supported |
|---|---|
| List shares, schemas and tables | Yes |
| Table version, including the first version after a timestamp | Yes |
| Table metadata (schema, partition columns) | Yes |
| Read the current version | Yes |
Read an earlier version or timestamp |
Yes, unless the table is shared without history |
Change data feed (startingVersion/endingVersion) |
Not yet |
responseFormat=delta |
Not yet; Flowfile answers in the Parquet format |
A timestamp without a time zone (a Polars Datetime with no zone) |
Served as a timestamp, so clients read the stored wall-clock values labelled UTC: 10:00 arrives as 10:00 UTC. In Spark, set the session time zone to UTC to see them unchanged. Keeping them without a zone needs responseFormat=delta |
Filter pushdown (predicateHints, limitHint) |
Hints are ignored, so every file of the version is returned |
Download links last one hour by default (FLOWFILE_DELTA_SHARING_URL_TTL, in seconds). Clients request new ones as they need them.
Settings
| Variable | Default | Effect |
|---|---|---|
FLOWFILE_DELTA_SHARING |
on | 0/false/no/off turns Delta Sharing off; every protocol and management route answers 404 |
FLOWFILE_DELTA_SHARING_ENDPOINT |
unset | The endpoint written into every profile file and used for download links |
FLOWFILE_DELTA_SHARING_URL_TTL |
3600 |
How long a download link stays valid, in seconds (60 seconds to 7 days) |
Shares are not part of a project export: they grant access to consumers, which a project does not hold.