Direct Data Share: Outbound
Outbound Direct Data Share publishes your Benchling records as Apache Iceberg tables you query from your own platform: Snowflake, Databricks, or any Iceberg client. See Direct Data Share for how it fits with inbound sharing, supported platforms, and beta availability.
This page has three parts:
- Common setup applies to every platform: getting access, what’s shared, freshness, and your connection details.
- Connecting from Snowflake and Connecting from Databricks cover each platform’s setup.
- Writing queries, Performance notes, and Troubleshooting at the end apply to both.
Common setup
Getting access
Outbound Data Share is in beta. To enable it, contact your Benchling representative and tell them:
- Where you’ll read the data.
- Snowflake: send your Snowflake account identifier (
<org>.<account>) if you want the data shared into your own Snowflake account as a listing. - Databricks: say that you’ll read from Databricks. Benchling then turns on the Databricks export path for your tenant. You can use both platforms.
- Snowflake: send your Snowflake account identifier (
- Which object types to include, if you want less than the full catalog. Most customers start with everything.
Which objects are shared
Direct Data Share covers a fixed catalog of Benchling object types. The catalog spans the notebook, registry, inventory, molecular biology, results and runs, lab automation, workflows, studies, chemistry, and platform configuration. Not every Benchling object is currently shareable.
A table appears only once there is at least one record of that type to share, so object types you don’t use won’t show up. For the full list of shareable object types, including the ones your tenant has no data for yet, see Direct Data Share: Data Shape. To see what your tenant actually has, list the tables on your platform; there are examples in the Snowflake and Databricks sections below.
Data freshness
A change in Benchling is currently visible to your queries within about an hour.
The tables shared with you are current-state tables: one row per object, reflecting its latest state.
Your connection details
Once provisioning finishes, a Benchling tenant admin can see your connection profile under Profile Settings → Data Sharing Connection Details → Show Connection Details:
The PAT expires one year after it’s issued. Store it in your own secret manager as soon as you receive it, never in a notebook or repository. To rotate it, ask Benchling to re-run provisioning. That issues a fresh token and revokes the old one, so update your clients (including any Databricks connection) when you rotate.
The read role can only read your tenant’s schemas, and it cannot write. A leaked token cannot reach another tenant’s data or modify anything, but it does grant read access to everything shared with you. See Access control.
Names are case-sensitive in Snowflake. Copy them exactly as shown. Schemas and tables are uppercase, for example ENTRY. Databricks shows the same names in lowercase, for example benchling_ten_abc123_shared.entry. Organizations onboarded before October 2026 may have all-lowercase schema names. S3 paths are always case-sensitive.
Connecting from Snowflake
A Snowflake listing in your own account
If you already run Snowflake, Benchling can publish your namespace as a private listing targeted at your account. You mount it once, then query it as a database in your own account, using your own roles, warehouses, and governance. No Benchling credential sits in your pipelines, and there is no cross-account token to rotate.
Give your Benchling representative your Snowflake account identifier (<org>.<account>) to have the listing targeted at you. Once it appears under Data Products → Private Sharing in Snowsight, mount it and query:
Exploring the catalog
If you query through a mounted listing, replace BENCHLING_DATA_SHARING_<DEPLOY> with your mounted database name. Everything in Writing queries applies unchanged.
Other Iceberg clients
The tables are Iceberg, so any Iceberg REST catalog client can read them, such as PyIceberg, Spark, Trino, and Flink. Use the catalog URI, token endpoint, and PAT from your connection details.
Authenticate from the Iceberg client itself, as above. Configuring the catalog as a Snowflake CATALOG INTEGRATION is not a supported path for this share.
Connecting from Databricks
In Databricks you read the current-state tables in your shared schema (BENCHLING_<YOUR_TENANT_ID>_SHARED) through a federated catalog:
- How it appears. Benchling’s catalog shows up in Unity Catalog as a normal foreign catalog, governed like your other catalogs.
- Where queries run. Queries run on your Databricks compute, which reads the table files directly from Benchling’s Amazon S3 bucket using an IAM role you own.
- What Snowflake does. Snowflake is only used to look up which tables exist.
Setup takes these Unity Catalog objects:
- A read-only storage credential and external location on your data in Benchling’s S3 bucket. Your IAM role, granted read access by Benchling.
- A writable external location in your own S3 bucket. Databricks stores the foreign catalog’s metadata there. Benchling’s location can’t be used for this because it is read-only.
- A Snowflake connection with a foreign catalog.
There is one handshake with Benchling: you send the ARN of your IAM role, and Benchling grants it read access to your data.
Before you start
- Connection details. You need the host, reader user, PAT, warehouse, database, shared schema, external location URL, and S3 region from your connection details. The external location URL has the form
s3://<BUCKET>/warehouse/shared/<NAMESPACE>/<DATABASE>/. Below,<BUCKET>and<NAMESPACE>refer to the parts of that URL. S3 paths are case-sensitive. - Compute. Reading the tables from S3 needs a pro or serverless SQL warehouse on version 2025.16 or later, or a cluster on Databricks Runtime 16.4 LTS or later in Standard or Dedicated access mode. Older compute, and classic SQL warehouses, send queries to Snowflake instead. To check a SQL warehouse, run
SELECT current_version();. - An S3 bucket of your own in the same region as your Databricks workspace, with an IAM role and storage credential that Databricks can write with. This is the standard Unity Catalog external location setup. Any existing writable external location works, or you can create one for this catalog in Step 4.
- Permissions. You need
CREATE STORAGE CREDENTIAL,CREATE EXTERNAL LOCATION,CREATE CONNECTION, andCREATE CATALOGon the metastore (usually a metastore admin). You also need to be able to create IAM roles in your AWS account.
Step 1. Create the IAM role and the storage credential
Databricks needs the role’s ARN to create the credential, and only shows the external ID once the credential exists. So you create the role with a placeholder trust policy first, and finish it in Step 2.
- Create the IAM role in AWS, for example
benchling-shared-uc-credential, with this placeholder trust policy. The principal is the Databricks Unity Catalog role for AWS commercial accounts.0000is a placeholder you replace in Step 2.
- Attach this permissions policy to the role, using your exact bucket and namespace:
- Create the storage credential in Databricks. Go to Catalog → External Data → Credentials → Create credential, choose Storage credential with type AWS IAM role, and enter the role ARN. Name it, for example,
benchling_shared_cred. After you save it, Databricks shows the credential’s external ID. If it isn’t shown right away, open the credential’s details.
Step 2. Finish the trust policy and send the role ARN to Benchling
- Update the role’s trust policy in AWS. Replace
0000with the external ID from Step 1, and add the role itself as a principal: Databricks requires storage-credential roles to be able to assume themselves.
- Validate the credential in Databricks. Assume Role, Self Assume Role, and External ID Condition should show Success. A failed Read check is expected: your access is limited to your prefix, and the Databricks check probes the bucket root.
- Send the role ARN to your Benchling contact. Benchling grants it read access to your prefix only.
Wait for Benchling to confirm the grant is in place before Step 3.
Step 3. Create a read-only external location for Benchling’s data
Go to Catalog → External Data → External Locations → Create location:
With the URL from your connection details, the Read validation check should pass. Write, delete, and File Events checks fail because the location is read-only; choose Force create if Databricks asks. With the Databricks CLI, pass "read_only": true and --skip-validation; the SQL CREATE EXTERNAL LOCATION statement has no read-only option.
Then let your users read through it:
Step 4. Create a writable external location in your own S3 bucket
Databricks requires the foreign catalog’s Storage location to be writable: it keeps the catalog’s Iceberg metadata there. Use a bucket in your own AWS account, not Benchling’s. Benchling’s data is never written to it.
If you already have a writable external location in the same region as your workspace, you can use it and skip this step. Otherwise, follow the Databricks guide for creating a storage credential and external location for S3:
- Create an S3 bucket, or pick a prefix in an existing one, for example
s3://<YOUR_BUCKET>/benchling-catalog/. - Create an IAM role for it, with the same two-step trust policy as Steps 1 and 2. Its permissions policy needs read and write access to that prefix:
s3:GetObject,s3:PutObject,s3:DeleteObject,s3:ListBucket, ands3:GetBucketLocation, plussts:AssumeRoleon its own ARN. - Create a storage credential for the role, for example
benchling_catalog_cred, and finish its trust policy with the external ID Databricks shows. - Create the external location, for example
benchling_catalog_storage, on that prefix with the new credential. Leave Limit to read-only use off. All validation checks should pass.
Step 5. Create the Snowflake connection and foreign catalog
Create the catalog in the Databricks UI. The catalog’s storage settings below are only available in the UI form.
Go to Catalog → External Data → Connections → Create connection:
The wizard then creates the foreign catalog:
Setting the Storage location is what makes this work. It switches the catalog to read the Iceberg table files from S3 on your compute, and stops queries from running in Snowflake. The warehouse is then only used for small metadata queries, such as listing schemas and tables, and never for scanning data. The Authorized paths setting lets the catalog read table files under Benchling’s location.
Grant your users access to the catalog as you would for any other catalog, for example:
You’ll see your shared schema in the catalog, in lowercase. If it has no tables right after you create the catalog, run SHOW SCHEMAS IN benchling; to refresh the catalog’s metadata.
Step 6. Query
Query by name through the catalog. Reading the S3 paths directly doesn’t work: table folders are named <TABLE>.<hash>, and Databricks splits a path on the dot.
Step 7. Check that queries run on Databricks compute
If the catalog is set up correctly, Databricks reads the table files from S3 itself. If not, it quietly sends the whole query to Snowflake instead. Queries still return the same results, but they run on Benchling’s small reader warehouse, so they are much slower and can time out on large tables.
Run EXPLAIN on a query against one of your tables:
- Running on Databricks. The physical plan has a file scan of Parquet files, for example
PhotonScan parquet benchling.benchling_ten_abc123_shared.entry[...]orFileScan parquet. - Running in Snowflake. The physical plan is a
SnowflakePlannode, with the query text Databricks sends to Snowflake. See Databricks troubleshooting for the causes.
In a notebook, spark.table("benchling.benchling_ten_abc123_shared.entry").explain() shows the same plan. In Catalog Explorer, tables read from S3 also show Iceberg as their source format, and tables read through Snowflake show Snowflake. Check again after any change to the catalog, connection, or compute.
Databricks troubleshooting
Writing queries
See Outbound Data Shape for table and column naming, schema field value tables, archived records, and timestamp formatting. Three conventions from there account for most mistakes:
- Quote column names, not table names.
SELECT "createdAt" FROM ENTRY, neverSELECT createdAt. In Databricks, quote with backticks instead of double quotes. - Filter archived records with
WHERE NOT "archived"unless you want them. - Parse timestamps with
TRY_TO_TIMESTAMP("createdAt")before any date arithmetic.
The examples below are Snowflake SQL and use BENCHLING_TEN_ABC123 as the schema. Substitute your own, and set it with USE SCHEMA so you can write bare table names. In Databricks, use your shared schema (for example USE benchling.benchling_ten_abc123_shared) and backticks for quoted identifiers.
Simple joins
Reference fields are IDs, so joining is how you get names. This lists recent notebook entries with their author, folder, project, and schema:
Use LEFT JOIN for reference fields that are optional: an unfiled entry has no "folder_id", and an entry with no schema has no "schema_id". An inner join silently drops those rows.
For a registry census, an inventory-with-storage-hierarchy example, and schema field joins (including pivoting fields into columns), see Outbound Data Shape.
Performance notes
- Project the columns you need. These are columnar Iceberg tables, so
SELECT "id", "name"reads far less thanSELECT *. Object tables can be wide, and a few columns hold large payloads, includingDNASEQUENCE."bases"andENTRY."sections". - Filter before joining schema field values. Narrow the parent table first in a CTE, then join to the value tables. The value tables hold a row per field per object and are usually the largest tables in the schema.
- Prefer
"systemName"over"name"in field-definition predicates. System names are stable; display names change when someone renames a field. - Cache pivots you reuse. If a pivoted view backs a dashboard, materialize it on your side on a schedule that matches the hourly refresh. Avoid re-pivoting on every query.
Troubleshooting
A row count looks stale: current-state tables refresh hourly. If a count is still wrong after an hour, and you are querying through a mounted listing, a Databricks foreign catalog, or another external catalog, refresh your client’s metadata. Do this before concluding the data is missing.
Authentication fails: PATs expire one year after issue, and re-provisioning revokes the previous token. Confirm your token is current, and that your client sends it as the password. Snowflake and Iceberg clients must also set the role to BENCHLING_<YOUR_TENANT_ID>_RO.
For Databricks-specific errors, see Databricks troubleshooting. For identifier-casing errors, missing tables, and schema-field pivot issues, see Troubleshooting on the Data Shape page.