Skip to navigation

Direct Data Share: Outbound

Connect to your Benchling data from Snowflake, Databricks, or any Iceberg client.

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

Direct Data Share is an analytics surface, not currently a real-time one. For event-driven integrations that need to react to a change in seconds, use Events or webhooks instead.

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:

ValueWhat it is
Account identifier and hostThe Snowflake account holding your share, for example <account>.snowflakecomputing.com
DatabaseBENCHLING_DATA_SHARING_<DEPLOY>, where <DEPLOY> identifies your Benchling deployment
SchemaBENCHLING_<YOUR_TENANT_ID>, your tenant’s namespace, for example BENCHLING_TEN_ABC123
Shared schema (Databricks only)BENCHLING_<YOUR_TENANT_ID>_SHARED, for example BENCHLING_TEN_ABC123_SHARED
External location URL and S3 region (Databricks only)Where your shared schema’s table files live, in the form s3://<BUCKET>/warehouse/shared/<NAMESPACE>/<DATABASE>/. Shown under Databricks Unity Catalog.
Read roleBENCHLING_<YOUR_TENANT_ID>_RO
Reader userBENCHLING_<YOUR_TENANT_ID>_READER
WarehouseBENCHLING_DATA_SHARING_READER_WH
Programmatic access token (PAT)The credential for the reader user. You use it as the password.
Catalog URI and token endpointFor Iceberg clients that read the catalog directly

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:

SELECT "id", "name", "createdAt"
FROM <your_mounted_database>.BENCHLING_TEN_ABC123.ENTRY
WHERE NOT "archived";

Exploring the catalog

-- Every table shared with you
SHOW TABLES IN SCHEMA BENCHLING_DATA_SHARING_<DEPLOY>.BENCHLING_TEN_ABC123;
-- Columns for one object type
SELECT column_name, data_type
FROM BENCHLING_DATA_SHARING_<DEPLOY>.INFORMATION_SCHEMA.COLUMNS
WHERE table_schema = 'BENCHLING_TEN_ABC123'
AND table_name = 'ENTRY'
ORDER BY ordinal_position;

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.

from pyiceberg.catalog.rest import RestCatalog
catalog = RestCatalog(
name="benchling",
uri="<catalog_uri>",
warehouse="<catalog_name>",
credential="<programmatic_access_token>",
**{"oauth2-server-uri": "<token_endpoint>"},
)
table = catalog.load_table(("BENCHLING_TEN_ABC123", "ENTRY"))
df = table.scan(selected_fields=("id", "name", "createdAt")).to_arrow()

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, and CREATE CATALOG on 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.

  1. 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. 0000 is a placeholder you replace in Step 2.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {"AWS": "arn:aws:iam::414351767826:role/unity-catalog-prod-UCMasterRole-14S5ZJVKOTYTL"},
"Action": "sts:AssumeRole",
"Condition": {"StringEquals": {"sts:ExternalId": "0000"}}
}
]
}
  1. Attach this permissions policy to the role, using your exact bucket and namespace:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:GetObjectVersion"],
"Resource": "arn:aws:s3:::<BUCKET>/warehouse/shared/<NAMESPACE>/*"
},
{
"Effect": "Allow",
"Action": ["s3:ListBucket", "s3:GetBucketLocation"],
"Resource": "arn:aws:s3:::<BUCKET>"
},
{
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Resource": "arn:aws:iam::<YOUR_ACCOUNT>:role/<THIS_ROLE>"
}
]
}
  1. 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

  1. Update the role’s trust policy in AWS. Replace 0000 with 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.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"arn:aws:iam::414351767826:role/unity-catalog-prod-UCMasterRole-14S5ZJVKOTYTL",
"arn:aws:iam::<YOUR_ACCOUNT>:role/<THIS_ROLE>"
]
},
"Action": "sts:AssumeRole",
"Condition": {"StringEquals": {"sts:ExternalId": "<EXTERNAL_ID_FROM_DATABRICKS>"}}
}
]
}
  1. 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.
  2. 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:

FieldValue
NameFor example benchling_shared
URLThe External location URL from your connection details, ending in /<DATABASE>/
Storage credentialbenchling_shared_cred
Limit to read-only useOn. Required, because the credential can’t write.
File eventsOff

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:

GRANT READ FILES ON EXTERNAL LOCATION benchling_shared TO `<your-group>`;

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:

  1. Create an S3 bucket, or pick a prefix in an existing one, for example s3://<YOUR_BUCKET>/benchling-catalog/.
  2. 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, and s3:GetBucketLocation, plus sts:AssumeRole on its own ARN.
  3. Create a storage credential for the role, for example benchling_catalog_cred, and finish its trust policy with the external ID Databricks shows.
  4. 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:

FieldValue
Connection typeSnowflake
Host / portThe host from your connection details / 443
AuthenticationUsername and password: user = the reader user, password = the PAT. Don’t use OAuth.
WarehouseBENCHLING_DATA_SHARING_READER_WH

The wizard then creates the foreign catalog:

FieldValue
Catalog nameFor example benchling
DatabaseThe database from your connection details
Authorized pathsYour read-only external location from Step 3 (benchling_shared), with no subpath
Storage locationYour writable external location from Step 4 (benchling_catalog_storage)

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:

GRANT USE CATALOG, USE SCHEMA, SELECT ON CATALOG benchling TO `<your-group>`;

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

SHOW TABLES IN benchling.benchling_ten_abc123_shared;
SELECT * FROM benchling.benchling_ten_abc123_shared.entry LIMIT 100;
df = spark.table("benchling.benchling_ten_abc123_shared.entry")

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:

EXPLAIN SELECT * FROM benchling.benchling_ten_abc123_shared.entry LIMIT 10;
  • Running on Databricks. The physical plan has a file scan of Parquet files, for example PhotonScan parquet benchling.benchling_ten_abc123_shared.entry[...] or FileScan parquet.
  • Running in Snowflake. The physical plan is a SnowflakePlan node, 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

SymptomCause and fix
Storage credential validation: Read failedExpected. Your role can only read your prefix, and the check probes the bucket root. Continue, and test with a real query (Step 6).
External location validation: Read failedMake sure the URL is the External location URL from your connection details, including the database folder at the end and the exact case. Write and File Events failures are expected.
External ID Condition failedThe trust policy still has the 0000 placeholder, or a different external ID. Copy the one shown on the storage credential (Step 2).
Self Assume Role failedThe role’s trust policy must include the role itself (Step 2), and its permissions policy must allow sts:AssumeRole on its own ARN (Step 1).
External location creation fails with a write errorTurn on Limit to read-only use for Benchling’s location (Step 3).
Catalog creation fails: storage location “will be used for unloading data and cannot be read only”The catalog’s Storage location must be a writable location in your own bucket (Step 4), not Benchling’s read-only location. Put Benchling’s location under Authorized paths instead.
Connection test hangs, or “no active warehouse”Set the connection’s Warehouse field to BENCHLING_DATA_SHARING_READER_WH. If it’s already set, ask Benchling to confirm your reader user can use it.
Authentication failsUse Username and password, with the reader user and the PAT as the password. If the token was rotated, update the connection’s password.
EXPLAIN shows SnowflakePlan, queries are slow, or Snowflake shows query activityThe catalog isn’t reading from S3. Check, in order: the compute meets the version requirement in Before you start; the catalog was created in the UI with Storage location set (Step 5); Authorized paths includes Benchling’s location. If all three are right, contact Benchling.
S3 403 / AccessDenied when queryingOne of: Benchling hasn’t applied the grant yet; the ARN you sent isn’t the role your storage credential uses; the URL or prefix case is wrong; or Benchling’s location isn’t under the catalog’s Authorized paths.
Shared schema doesn’t appear, or has no tablesRun SHOW SCHEMAS IN <your_catalog>; to refresh. Current-state tables appear within about an hour of onboarding. If the schema stays missing or empty, contact Benchling.
Table “does not exist”Use the lowercase names Databricks shows, for example benchling.benchling_ten_abc123_shared.entry.

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:

  1. Quote column names, not table names. SELECT "createdAt" FROM ENTRY, never SELECT createdAt. In Databricks, quote with backticks instead of double quotes.
  2. Filter archived records with WHERE NOT "archived" unless you want them.
  3. 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:

SELECT
e."displayId",
e."name" AS entry_name,
TRY_TO_TIMESTAMP(e."createdAt") AS created_at,
u."name" AS creator_name,
f."name" AS folder_name,
p."name" AS project_name,
s."name" AS schema_name
FROM ENTRY AS e
LEFT JOIN USER AS u ON u."id" = e."creator_id"
LEFT JOIN FOLDER AS f ON f."id" = e."folder_id"
LEFT JOIN PROJECT AS p ON p."id" = f."project_id"
LEFT JOIN ENTRYSCHEMA AS s ON s."id" = e."schema_id"
WHERE NOT e."archived"
ORDER BY created_at DESC
LIMIT 100;

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 than SELECT *. Object tables can be wide, and a few columns hold large payloads, including DNASEQUENCE."bases" and ENTRY."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.