Home › Learn › Databricks compute and cost › Sharing data in and out

Databricks compute and cost · data engineering

Sharing data in and out of Databricks: Delta Sharing, clean rooms, UniForm, federation and every other way, with pictures

Two directions drawn method by method: how others read data Databricks owns (Delta Sharing, clean rooms, Marketplace, Iceberg REST catalog, SQL warehouse, push, export) and how Databricks reads data others own (federation, external locations, connectors, Auto Loader, streams), each with how it works inside, when to use it, when not to, cost, performance and security.

Cluster anatomyWarehouses and serverlessChoosing computeCompute settingsCost by workloadLogs and visibilityPhoton and cachesHow billing worksDividing the billSystem tablesSharing and regionsBackup architectureSharing data in and outCost-saving hacks

Prices, defaults, limits and preview status change often, and dollar figures here are illustrations. Check the current Databricks documentation and price list before quoting a number.

Sharing data in and out

Two directions, and three layers

Two questions get mixed up. Part A: how can someone else read data that Databricks owns? Part B: how can Databricks read data that someone else owns? Each has its own set of methods. Every method below has a picture of how it works inside, a list for when to use it, and a list for when not to.

LayerThe question it answersNames you will meet
1. Reading the data"Can they read my table, safely, without me copying it?"Delta Sharing, Marketplace, SQL warehouse, Lakehouse Federation
2. Computing without seeing"Can we answer one question together without either of us showing our rows?"Clean room
3. File format and catalog"Can another engine read the same files?"UniForm, Iceberg REST catalog, catalog federation, managed Iceberg tables

Delta Sharing is a protocol (layer 1). A clean room is a product that uses it (layer 2). UniForm is a file format trick (layer 3) and shares nothing by itself.

DATABRICKSUnity Catalog tablesand the files behind them OTHERSpartners, other engines,databases, SaaS, buckets,event streams APPS AND OPERATIONALdashboards, services,databases that needthe data Part A Part B Part A
Part A is data going out of Databricks, to others and to apps. Part B is data coming in.

Part A · others read what Databricks owns

Part A: others read data Databricks owns, at a glance

Way outConsumer getsBest forVerdict
A1 Delta Sharing, Databricks to DatabricksLive read-only tablesPartner on DatabricksPursue
A2 Delta Sharing, openLive read-only tablesPartner on another platformPursue
A3 Clean roomOnly approved answersRows may not be revealedPursue, only for a real privacy need
A4 MarketplaceA share, found through a listingMany or unknown consumersPursue
A5 UniForm and Iceberg REST catalogDirect file reads by their engineYour own other enginesPursue
A6 SQL warehouse API, JDBC, ODBCQuery answersApps and BIPursue
A7 Push to another systemTheir own copy in their systemOperational targetsPursue
A8 File exportFilesReceivers that can only take filesLast resort
Storage keys on managed table pathsEverything, ungovernedNothingDrop: bypasses Unity Catalog, so no audit, masks or revoke

Choosing, step by step

  1. Is the consumer an app or a person? Use A6, the SQL warehouse.
  2. Is the consumer a data platform? Ask "may they see my rows?" If not, build a clean room (A3).
  3. If yes and they are on Databricks, use A1. If not, use A2.
  4. Many unknown buyers? Use the Marketplace (A4).
  5. Your own other engines on your own data? Use A5.
  6. Does an operational system need the data inside it? Push it (A7). Only a file will do? Export it (A8), last.

Part A · others read what Databricks owns

A1. Delta Sharing, Databricks to Databricks

Both sides use Unity Catalog. The recipient mounts your share as a catalog in their own workspace and queries it like any other table. Nothing is copied.

THEIR COMPUTEa Databricks workspacequeries the shared catalogand pays for its own computeSHARING SERVICErun by Databricks; checksthe grant held in yourUnity CatalogYOUR CLOUD STORAGEthe table's Parquet filesand _delta_lognever copied or moved1231.Their query on the shared catalog goes to the sharing service.2.The service checks your grant, picks the files for the current table version using the Delta log and itsmin and max statistics, and replies with short-lived signed links.3.Their compute downloads those Parquet files straight from your storage. The service never carries thedata.
Set-up before step 1: they send you their metastore identifier, you create a recipient and a share, and you grant the share to that recipient.

Under the hood

Use it whenDo not use it when
  • The partner is also on Databricks with Unity Catalog
  • You want live data with no pipeline and no copy
  • You need to revoke or audit access
  • You share inside one company across accounts or clouds
  • The partner is not on Databricks (use open sharing)
  • The partner must not see rows at all (use a clean room)
  • The partner is in another region or cloud and will read big tables repeatedly: transfer fees add up, so replicate once
  • You need the partner to write back

Cost, performance and security

Cost and performanceSecurity
  • No pipeline and no copy, so no extra storage for the recipient.
  • You pay for storage and for the storage requests their reads make. They pay for their compute.
  • Reads go straight from storage in parallel, so scan speed is good. The first query adds a short round trip to the sharing service.
  • Cross-region or cross-cloud reads are charged by the cloud provider, normally to the data's owner.
  • Access is a grant to one named recipient. It is read-only and can be revoked.
  • Signed links are short-lived and cover only the files for that query.
  • Access is recorded in audit logs. No token exists to leak.
  • Once rows are read the recipient can copy them. To limit this, share a view with row and column rules, not the base table.

Part A · others read what Databricks owns

A2. Delta Sharing, open sharing

The same protocol, but the recipient is not on Databricks. They use a credential and any tool that has a Delta Sharing client.

THEIR TOOLSpark, pandas, Power BI,Tableau, Snowflake or anyDelta Sharing clientSHARING SERVERchecks their bearer tokenor federated login, thenthe share grantYOUR CLOUD STORAGEthe table's Parquet filesstay where they are1231.The client presents its credential and asks for a table, with any filters.2.The server checks the credential and the share, and replies with short-lived signed links to only theneeded files.3.The client downloads the files directly from your storage and builds the rows itself.
Set-up before step 1: you create a recipient of the token type and send them the credential file, or set up login through your identity provider.

Under the hood

Use it whenDo not use it when
  • The partner is on another platform, or on nothing but a Python notebook
  • You want governed, revocable, audited access
  • The partner is a different company
  • The partner is on Databricks (use the Databricks to Databricks route, with no token to rotate)
  • The partner is a warehouse engine such as Athena or Redshift with no client (see the AWS section below)
  • You cannot manage token rotation

Cost, performance and security

Cost and performanceSecurity
  • Same cost shape as A1: your storage requests and transfer, their compute.
  • Very wide client support, but each client's speed depends on its own engine.
  • The bearer token works like a password. Anyone holding it can read until it expires or you revoke it.
  • Set a short expiry, rotate it, and add an allowed IP list for the recipient where you can.
  • Prefer federated login through your identity provider over long-lived tokens.
  • Share views, not base tables, if rows or columns must be limited.

Part A · others read what Databricks owns

A3. Clean room, taught from zero

Everything so far hands the other side rows. A clean room is for when you must not.

The problem it solves

A shop knows who bought what. A brand knows who saw its online advert. Together they could answer a valuable question: "Of the people who saw the advert, how many bought?" To answer it, somebody has to match the two customer lists. But neither side may hand its list to the other. Customer lists are private, and privacy law forbids passing them around.

The old ways, and why they fail

The clean room idea

Build a locked room. Both sides place their data inside it, and neither can look at the other's rows. The only thing that runs in the room is a piece of code that both sides have read and approved. Only the result of that code comes out, for example a count, never the rows.

SHOPcustomers and purchasesstays in the shop's ownUnity Catalogbrand never sees the rows BRANDwho saw the advertstays in the brand's ownUnity Catalogshop never sees the rows THE CLEAN ROOM (locked) Approved notebookmatch the two lists on a hashed emailcount shoppers who saw the advertand bought, grouped by region Rules of the roomboth sides approved this exact codeevery run is logged shared in,shared in, not givennot given Only this comes out"12,400 people saw it and bought. North 4,100, South 8,300."
Each side keeps its own data. A notebook that both sides approved runs in the room. Only the answer leaves.

Under the hood

PromiseHow it is kept
Raw data is not handed overEach side keeps its tables in its own account. They are shared into the room using Delta Sharing, so the other side can see names and columns but not rows. Rows are only touched by approved code.
Only agreed code runsA notebook is proposed by one side and must be approved by the others before anyone can run it. Changing the code means approving again.
Results are limitedThe approved notebook runs on serverless compute that Databricks manages, and only its output tables come out, to the party that ran it.
You can prove what happenedRuns and approvals are recorded in an audit log.

Where a clean room can still leak. The room guarantees who approved what code. It does not judge whether the output is safe. A notebook that simply wrote out one customer per row would be approved and would run. So the privacy rule has to be written into the notebook and checked by the reviewers: for example, never output a group smaller than 100 people, and never output a column that identifies a person.

Industry idea, Databricks product

"Data clean room" is an industry idea that began in advertising. Snowflake, AWS, Google, LiveRamp and others sell their own versions, and they enforce privacy in different ways (query rules, thresholds, encryption). Databricks Clean Rooms is Databricks' version, built on Delta Sharing and Unity Catalog. When a client says "clean room", ask which one they mean.

Use it whenDo not use it when
  • Two parties must analyse data together and neither may reveal raw rows: ads measurement, shared-customer overlap, joint research, fraud signals across a bank and an insurer
  • You can state the question in advance, because the approved code is the room
  • The other party is allowed to see the rows. Use Delta Sharing; it is simpler and cheaper.
  • You only want to publish a dataset to many buyers (use Marketplace)
  • You do not yet know the question you want to answer together
  • Nobody will review the code properly. Then the room gives false comfort.

Cost, performance and security

Cost and performanceSecurity
  • Each run uses serverless compute that is billed, and each side still pays for its own storage.
  • It is built for scheduled or on-demand batch analysis, not for interactive lookups. Expect start-up time per run.
  • Agree who pays for runs before you build the room.
  • The strongest privacy of any route: neither side sees the other's rows.
  • Only approved code runs, and each change needs approval again. Runs are audited.
  • The weak point is the notebook itself. Review it for minimum group sizes and for any column that identifies a person.
  • Limit what the output may contain, and who may read the output tables.

Part A · others read what Databricks owns

A4. Marketplace

A catalogue of listings built on top of Delta Sharing. It adds discovery, requests, approvals and optional payment. The data still moves by sharing.

YOU (provider)create a listing froma share; set terms,free or paidMARKETPLACEshows the listing;routes requests to youfor approvalCONSUMERbrowses, requests access,then reads the share asin A1 or A21231.You publish a listing that points at a share, with a description and sample data.2.A consumer finds it and requests access. Private listings can be limited to chosen consumers.3.You approve (or it is instant for open listings). The consumer gets the share and reads live data.

Under the hood

Use it whenDo not use it when
  • Many consumers, some you do not know yet
  • You are selling or publishing a dataset or an AI model
  • You want a place consumers can discover and try the data
  • One known partner. A direct share is simpler.
  • The data is private and must not be browsable
  • You cannot afford many consumers reading across regions

Cost, performance and security

Cost and performanceSecurity
  • Costs grow with the number of consumers, because each one's reads hit your storage and may cross regions.
  • Free listings can still run up transfer fees for you.
  • A public listing is visible to everyone. Never list data that is sensitive, even if you intend to approve requests.
  • Use private listings and approval for anything controlled.
  • State the terms of use in the listing. The platform can revoke access, but it cannot stop misuse of data already read.

Part A · others read what Databricks owns

A5. UniForm and the Iceberg REST catalog

This lets your own other engines read the same files you already have, as an Iceberg table, under Unity Catalog permissions.

YOUR OTHER ENGINETrino, Flink, Spark, EMR,Snowflake, Athenauses its own computeUNITY CATALOGIceberg REST endpoint;checks permissions andhands out credentialsYOUR CLOUD STORAGEParquet data files, theDelta log, and Icebergmetadata (UniForm)1231.The engine connects to the REST catalog and asks for a table.2.Unity Catalog checks the caller's permission, and replies with where the table's Iceberg metadata is andshort-lived storage credentials.3.The engine reads the metadata and data files directly from your storage with its own compute. Databrickscompute is not involved.

Under the hood

Delta SharingUniForm and Iceberg REST catalog
What it isA sharing protocol with recipientsA format plus a catalog endpoint
Reader needsA Delta Sharing clientAn Iceberg-capable engine
How rows reach the readerSigned links from the sharing serverStorage credentials from Unity Catalog, then direct reads
Best across an organisationYes: recipient, audit and revoke are built inNo. It assumes you trust the engine.
Best inside your estateAdds a boundary you do not needYes: many engines, one copy
Use it whenDo not use it when
  • Your own Snowflake, Trino, Flink or EMR should read tables Databricks writes
  • You want one copy and no pipeline
  • You are moving toward an open lakehouse with several engines
  • The reader is another company (use Delta Sharing)
  • You need a recipient, expiry and revoke built in
  • You cannot test the metadata lag against your freshness promise

Cost, performance and security

Cost and performanceSecurity
  • No Databricks compute is used for reads. The other engine's compute is billed to them.
  • Direct Parquet reads are fast when files are well sized. Many small files slow every engine, so compact them.
  • UniForm adds a small amount of work after each write to produce the Iceberg metadata.
  • Check that table features you use, such as deletion vectors and column mapping, are supported by the Iceberg reader.
  • The engine receives short-lived storage credentials, so you must trust that engine and whoever runs it.
  • Row filters and column masks are enforced by Databricks compute. An engine reading files directly bypasses them, so tables that use them generally cannot be exposed this way. Check the current rules.
  • Scope the credentials to the table, keep them short-lived, and watch access logs on the bucket.

Part A · others read what Databricks owns

A6. SQL warehouse API, JDBC and ODBC

The consumer does not get tables. It sends SQL and gets answers back. Databricks does the reading with its own compute.

APP OR BI TOOLLambda, Tableau, Power BI,your own servicesigns in as a user or aservice principalSQL WAREHOUSEDatabricks compute; runsthe query on Photon andapplies permissions,row filters and masksYOUR TABLESin Unity Catalogread by the warehouse1231.The app sends SQL over JDBC or ODBC, or calls the SQL Statement Execution API over HTTPS.2.The warehouse starts if it is stopped, checks the caller's permissions and reads the tables.3.Results come back. Small results arrive inline. Large results can be returned as links to files that theapp downloads.

Under the hood

Use it whenDo not use it when
  • Apps, dashboards and services that need answers, not tables
  • You want all governance applied by Databricks
  • The consumer is small and cannot run an engine
  • Bulk extraction of whole tables. It is slow and uses warehouse time. Share or export instead.
  • The consumer wants to join your data with theirs using their own engine
  • You need sub-second lookups for thousands of users (use a serving layer)

Cost, performance and security

Cost and performanceSecurity
  • Warehouse compute is billed by the second. A stopped warehouse adds start-up time to the first query.
  • Photon and the result cache make repeat queries cheap and fast.
  • Concurrency is limited by warehouse size and clusters. Spikes queue up.
  • Pulling large tables through it wastes warehouse time and is slow.
  • The strongest enforcement of the Part A routes: Databricks runs the query, so row filters, column masks and grants all apply.
  • The consumer sees only results. Every query is in the audit log.
  • Use a service principal with least privilege per app, OAuth rather than shared personal tokens, and private networking or IP allowed lists.

Part A · others read what Databricks owns

A7. Push to another system

Instead of waiting for someone to read, your job writes the rows into the system that needs them: an operational database, a queue, a CRM or a serving store.

YOUR JOBa Lakeflow job or astreaming query thatreads your Delta tableWRITERJDBC write, Kafka orEvent Hubs sink, oran API call in batchesTARGET SYSTEMoperational database,queue, CRM or servingstore, owns its own copy121.The job reads a batch, or streams only the changes, from a Delta table.2.The writer sends rows in parallel batches. Use keyed upserts so a retry does not duplicate rows.3.The target stores its own copy. After that, Databricks has no control over it.

Under the hood

Use it whenDo not use it when
  • An operational system must hold the data in its own store
  • The target must be fast and independent of Databricks
  • Events must reach a queue or a stream
  • Only analysts read it. Share it instead and avoid a second copy.
  • You cannot make the writes idempotent
  • The target cannot take the load

Cost, performance and security

Cost and performanceSecurity
  • You pay job compute plus the target's write cost. Network transfer applies if the target is elsewhere.
  • Speed is set by the target's write rate. More parallel connections is faster but can overload it.
  • Target credentials belong in a secret scope, never in the notebook.
  • After the push the data lives outside Unity Catalog. Row filters and masks do not follow it.
  • Use TLS to the target and a write-only account limited to the tables it needs.
  • Personal data is now in a second place that must be deleted too.

Part A · others read what Databricks owns

A8. File export

You write files to a bucket or an SFTP drop and the other side collects them. It is the oldest way and the weakest.

YOUR JOBselects the rows, writesParquet, CSV or JSONto a pathA BUCKET OR SFTPS3, ADLS, GCSor a file drop withits own permissionsRECEIVERdownloads the fileswhen they choose to121.On a schedule, the job writes a snapshot of the data to a new folder.2.The receiver is told, or polls, and downloads the files with credentials you gave them.3.Once downloaded the files are outside Unity Catalog. There is no audit and no way to take them back.

Under the hood

Use it whenDo not use it when
  • The receiver can only take a file (a regulator, an old system)
  • A one-off hand-over where live access is not worth building
  • Anything where a live route exists
  • Data that must be revocable
  • Large volumes repeated daily. It gets expensive and drifts.

Cost, performance and security

Cost and performanceSecurity
  • Compute to write, storage for the copies and transfer for the download. Every run makes a new copy.
  • Large sequential Parquet files are fast to write and fast to download.
  • The weakest route. Once downloaded there is no audit and no revoke.
  • Encrypt at rest, give the receiver short-lived signed links or a scoped credential, and expire old folders.
  • Keep personal data out of file names. Remove or mask sensitive columns before export.

Part B · Databricks reads what others own

Part B: Databricks reads data others own, at a glance

Way inWhere the data livesBest forVerdict
B1 Lakehouse Federation (query)Stays in the source databaseExploring, small lookups, prototypesPursue, for light use
B2 Catalog federationStays in the other engine's filesA lake another engine ownsPursue
B3 External locations, tables, volumesStays in the folderShared lake, raw landing filesPursue
B4 Delta Sharing as a recipientStays at the providerPartner or vendor data, no pipelinePursue
B5 Lakeflow ConnectCopied into Delta, kept currentSupported SaaS and databasesPursue
B6 Auto LoaderCopied into DeltaFiles landing over timePursue
B7 Streaming sourcesCopied into DeltaEvent streamsPursue
B8 JDBC and custom codeCopied into DeltaSources nothing else coversFallback

Choosing, step by step

  1. Must the data stay where it is, and the use is light or exploratory? Use B1.
  2. Is it files that another engine or catalog owns? Use B2. Plain folders with no catalog? Use B3.
  3. Is a partner publishing it through Delta Sharing? Use B4.
  4. Do you need your own copy, kept fresh? Use B5 for a supported source, B6 for files, B7 for events and B8 only if nothing else fits.
  5. Will the same remote table be read again and again? Stop federating. Copy it once and keep it current.

Part B · Databricks reads what others own

B1. Lakehouse Federation (query federation)

Databricks queries an external database in place. An admin makes a connection and a foreign catalog, and the remote tables then look like tables in Unity Catalog.

YOUwrite SQL on theforeign catalog, suchas pg.sales.ordersDATABRICKS WAREHOUSEplans the query, pushesfilters and someaggregates down to thesource, applies UC grantsEXTERNAL DATABASEPostgres, MySQL, SQLServer, Snowflake,BigQuery, Redshift ...keeps the data12341.You run SQL against the foreign catalog. Unity Catalog checks you may read it.2.Databricks turns the part it can push down into a query in the source's own dialect and sends it usingthe connection's credentials.3.The source runs that query on its own engine and returns only the matching rows over the network.4.Databricks joins, aggregates the rest and returns the result. Reads only: you cannot write to thesource.

Under the hood

Use it whenDo not use it when
  • Exploring or prototyping before you decide what to ingest
  • Occasional joins of your lakehouse data with a small reference table
  • One-off analysis
  • Source data must stay where it is
  • The same big query runs often. Ingest instead, so the source is not hit each time.
  • Large joins across the network
  • The source database is busy production and cannot take analytic reads
  • You need history, time travel or Delta features on that data

Cost, performance and security

Cost and performanceSecurity
  • Cost is warehouse compute, the load on the source, and network transfer. There is no storage cost in Databricks.
  • Speed depends on pushdown. A filter that is pushed down is fast, and one that is not drags many rows across the network.
  • Each run is slower than reading Delta, and cannot use Delta data skipping or caching of the source.
  • A heavy federated workload can slow or cost money on the source side.
  • The connection uses one account at the source for everyone allowed to use the connection. A user may see more than their own source rights allow.
  • Use a least-privilege, read-only source account limited to the schemas you want to expose.
  • Grant the foreign catalog only to the right groups.
  • Open the source firewall only to Databricks' network, or use private connectivity. Credentials sit in the connection, not in notebooks.

Part B · Databricks reads what others own

B2. Catalog federation

The data is files in cloud storage, but another catalog (a Hive metastore, AWS Glue, Snowflake's open catalog or another Iceberg REST catalog) owns the metadata. Databricks asks that catalog which files, then reads the files itself.

DATABRICKS COMPUTEUnity Catalog treats theexternal catalog as aforeign catalogEXTERNAL CATALOGHive metastore, Glue,Snowflake open catalog,Iceberg RESTknows the table's filesSTORAGE WITH THE FILESS3, ADLS or GCSDelta, Iceberg or Parquetwritten by the other engine1231.Databricks asks the external catalog about the table.2.The catalog answers with the table's schema and the location and list of its files.3.Databricks reads those files directly from storage with its own compute, using an external location youconfigured. The other engine is not involved.

Under the hood

Use it whenDo not use it when
  • Another engine owns and writes the table, and you want to read it from Databricks with no copy
  • A lake that is governed by Glue or Snowflake today
  • You are migrating slowly and both worlds must see the same data
  • The source is a normal database, not files (use query federation)
  • You need to write to the table from Databricks
  • The other catalog cannot be reached from your network

Cost, performance and security

Cost and performanceSecurity
  • Your compute and storage request charges at their bucket. The other engine's compute is not used.
  • Direct Parquet reads are near-native speed when file sizes are good.
  • Metadata lookups add a round trip, and results may trail the other engine's latest commit.
  • You need cross-account access to their bucket. Use a read-only role limited to the table paths.
  • The other catalog's own permissions are not mirrored. Define who in Databricks may read, using grants on the foreign catalog.
  • Row and column rules defined in the other engine are not enforced when Databricks reads files directly.

Part B · Databricks reads what others own

B3. External locations, external tables and volumes

You point Unity Catalog at a folder in cloud storage, give it a credential, and then define tables or volumes over that folder. Databricks reads in place.

DATABRICKS COMPUTEruns SELECT on anexternal table or readsa volume pathUNITY CATALOGexternal location = path +storage credential;grants decide who readsCLOUD STORAGEa bucket or folder thatother systems or teamsalso use1231.The query names an external table. Databricks asks Unity Catalog about it.2.Unity Catalog checks the user's grants, then issues a short-lived credential scoped to that path only.3.Compute reads the files straight from the folder. Nothing is copied, and the folder's owner keeps fullcontrol.

Under the hood

Use it whenDo not use it when
  • Files are produced by other systems and you only need to read them
  • A shared lake that other engines also use
  • Raw landing folders, before ingestion
  • Unstructured files such as PDFs and images (volumes)
  • Nobody else uses the data. A managed table is cheaper to run, because Databricks looks after it.
  • The bucket belongs to another organisation you do not fully trust
  • You need strong consistency while another system rewrites the files

Cost, performance and security

Cost and performanceSecurity
  • You pay for storage requests, and nothing is optimised for you. Compaction and clean-up of files you do not manage stay your responsibility.
  • Managed-table features such as automatic maintenance mainly cover managed tables. Plan maintenance for external ones.
  • Speed depends on the folder's file layout and format.
  • The credential is scoped to a path and is the key to everything under it. Give the IAM role or managed identity only the folders you need.
  • Do not let external locations overlap, and restrict who can read raw paths directly, because that bypasses table-level grants.
  • Grants on the external table are checked by Unity Catalog, but anyone with the storage role outside Databricks is not.

Part B · Databricks reads what others own

B4. Delta Sharing as a recipient

This is A1 and A2 seen from the receiving side. A provider shares tables with you, and you mount the share as a read-only catalog.

YOUR COMPUTEqueries the sharedcatalog like any otherand pays for itselfPROVIDER SHARING SERVERchecks who you are andthat the share was grantedto youPROVIDER STORAGEtheir Parquet files,left where they are1231.Your query is sent to the provider's sharing server along with your identity.2.The server answers with short-lived signed links to just the files your query needs.3.Your compute downloads those files from the provider's storage. The data is theirs and is never storedin your account.
Set-up: send the provider your metastore identifier, or receive a credential file. Then create a catalog from the share and grant it inside your workspace.

Under the hood

Use it whenDo not use it when
  • A partner or vendor publishes data you want to use without a pipeline
  • Public or commercial data from a marketplace
  • You need current data and cannot wait for a file drop
  • You need to modify, annotate or keep history the provider will not keep (copy it first)
  • You will scan the same big remote table many times (copy it once)
  • You need guaranteed availability outside the provider's control

Cost, performance and security

Cost and performanceSecurity
  • You pay for your compute. The provider pays for storage requests and often the transfer, so providers may limit heavy use.
  • Reads depend on network speed to the provider's storage. Repeated scans of a big remote table are slow and costly. Copy it once instead.
  • Treat shared data as untrusted input. Validate schema and values before joining it into your trusted tables.
  • The provider can see which of their tables you read.
  • Keep your own sensitive data out of the shared catalog, and grant read on the shared catalog only to those who need it.

Part B · Databricks reads what others own

B5. Lakeflow Connect (managed connectors)

Databricks runs the connection for you. It reads changes from a SaaS app or a database, lands them, and keeps your tables up to date incrementally.

SOURCESalesforce, Workday,SQL Server, ServiceNow,Google Analytics ...MANAGED CONNECTORreads changes throughthe source's API or itschange log (CDC)STAGINGchanges are written toa Unity CatalogvolumeYOUR TABLESstreaming tables, inbronze, kept current byincremental updates1231.On a schedule, the connector reads what has changed at the source, using a credential you created forit.2.The changes are staged in a volume, with the position of the last change remembered.3.A pipeline applies the changes to Delta tables, so the lakehouse copy follows the source without fullreloads.

Under the hood

Use it whenDo not use it when
  • The source is a supported SaaS app or database
  • You want incremental loading with little code
  • Many sources, one pattern
  • Your source is not on the list. Use files, streams or JDBC.
  • You need to reshape the data before landing it
  • A tiny one-off pull. A notebook is faster to build.

Cost, performance and security

Cost and performanceSecurity
  • You pay pipeline compute, staging storage and the target tables. Source API call limits can cap how fast you load.
  • Incremental loads are far cheaper and faster than full reloads, and change capture puts little load on the source.
  • Create a dedicated read-only source user or app with the minimum scopes. Keep credentials in a Unity Catalog connection.
  • Personal data now lands in bronze tables. Apply masks and access grants on arrival.
  • Network access to the source must be allowed. Use private connectivity where offered.

Part B · Databricks reads what others own

B6. Auto Loader (files landing in storage)

Other systems drop files into a bucket. Auto Loader notices new files and ingests each one exactly once.

OTHER SYSTEMSexport jobs, SaaS tools,devices, partnersdrop files inCLOUD STORAGEa landing folder;new files appear overtimeAUTO LOADER STREAMthe cloudFiles source;a checkpoint rememberswhich files are doneYOUR TABLESa bronze Delta tablewith schema tracking12341.Another system writes files into the landing folder.2.Auto Loader finds new files, either by listing the folder or by using the cloud's file-eventnotifications.3.It reads only the new files. The checkpoint records them, so a restart does not read them again.4.Rows are appended to a Delta table. New columns can be detected and handled by schema evolution.

Under the hood

Use it whenDo not use it when
  • Files arrive over time from other systems
  • Millions of small files you cannot track by hand
  • The schema may drift
  • A handful of files read once. A plain read is simpler.
  • The source is a database or a message stream
  • Files are overwritten in place. Auto Loader expects new files, not changed ones.

Cost, performance and security

Cost and performanceSecurity
  • Listing a huge folder gets slow and makes many storage requests. Use event notifications for big or busy folders, which need a small queue set-up cost.
  • Reading is parallel and scales with the cluster. A scheduled run that stops when idle is cheaper than a stream that never stops.
  • Whoever can write to the landing folder can inject data. Limit write access to the known sources.
  • Use the rescued data column or a quarantine table for bad records, and validate before promotion.
  • Encrypt the bucket and restrict who may read raw files.

Part B · Databricks reads what others own

B7. Streaming sources: Kafka, Event Hubs, Kinesis, Pub/Sub

Events live in a broker for a while. A Structured Streaming query reads them in order and remembers how far it got.

EVENT BROKERKafka, Event Hubs,Kinesis or Pub/Sub;keeps events for daysSTREAMING QUERYreads from a stored offset;a checkpoint holds theoffset in your storageDELTA TABLEappend-only events tablewritten exactly once1231.The query asks the broker for events after the last offset it saved.2.The broker returns the next batch of events.3.The batch is appended to Delta and the new offset is saved. After a crash, the query restarts from thesaved offset.

Under the hood

Use it whenDo not use it when
  • Events arrive continuously and need to be queryable within seconds or minutes
  • You need replay after a failure
  • Data is daily or hourly and a batch is fine. A stream costs an always-on cluster.
  • You need answers in milliseconds for an app (use a serving layer)

Cost, performance and security

Cost and performanceSecurity
  • A running stream keeps a cluster on all day. Where seconds are not needed, a scheduled run that processes what has arrived is much cheaper.
  • Broker throughput units or partitions are a separate bill at the cloud.
  • Latency is seconds. Throughput scales with partitions and cluster size.
  • Broker credentials belong in secrets. Use TLS and a topic-level read-only permission.
  • Events can carry personal data. Apply masks when they land.
  • Producers can send malformed events. Parse defensively and send bad ones to a dead-letter table.

Part B · Databricks reads what others own

B8. JDBC and custom connectors in a job

You write the reading code. Spark opens several connections to the source and reads slices of a table in parallel.

YOUR SPARK JOBspark.read.jdbc with apartition column andlower and upper boundsWORKERSeach opens its ownconnection and readsone slice of the tableSOURCEany database or APIwith a JDBC driver,or a Python client1231.The job splits the key range into slices, one per partition.2.Each worker sends its own query for its slice, such as WHERE id BETWEEN a AND b.3.Rows come back in parallel and are written to a Delta table by the job.

Under the hood

Use it whenDo not use it when
  • No managed connector or federation covers the source
  • You need custom logic, paging or authentication
  • A one-off or rare extraction
  • A managed connector exists. It handles incremental loading and retries for you.
  • The table has no good numeric or date key to slice on
  • The source is production at its busiest hour

Cost, performance and security

Cost and performanceSecurity
  • The source carries the load of every slice query, and a missing partition column makes it one slow read.
  • Memory on the driver limits how much a custom API loop can hold. Keep results streaming into Delta.
  • Never put a password in the JDBC URL in a notebook. Use a secret scope or a Unity Catalog connection.
  • Use a read-only database user, and allow only Databricks' network at the source.
  • If you build queries from user input, parameterise them, or you invite SQL injection.

Worked example

Exposing Unity Catalog tables to AWS services

The right route depends on what the AWS service needs.

AWS consumerRouteVerdict
Athena, Redshift, EMR, Glue reading the same tablesA5: Iceberg REST catalog. Athena and Redshift through Glue Data Catalog federation, so Lake Formation governs on the AWS side.Pursue: no copy, no Databricks compute
Lambda, ECS, Step Functions, QuickSight needing answersA6: SQL warehouse API, JDBC, or the QuickSight Databricks connectorPursue
Another AWS account or another company's teamA2: Delta Sharing with a Spark or pandas clientPursue: clean recipient boundary
A service that only takes files in S3A8: scheduled Parquet exportLast resort
Anything pointed straight at a managed table's S3 pathBucket policy or keysDrop

Why not Delta Sharing for Athena and Redshift?

Delta Sharing needs a client on the reading side: a connector that asks the sharing server for signed file links and downloads the files itself. Spark, pandas, Power BI and similar tools have one. To my knowledge Athena and Redshift do not, because they read through the AWS Glue catalog and Lake Formation instead. To use Delta Sharing with them you would build a Glue or EMR Spark job that reads the share and writes a copy into S3 or Redshift. That brings back a pipeline and a staleness window. Other reasons it fits badly inside your own AWS estate:

Use Delta Sharing for an AWS party that is a different organisation, or for one that reads through a Spark or pandas client.

Both directions

Cost traps and things to watch

TrapWhyWhat to do
Cross-region or cross-cloud readsThe cloud provider charges when data leaves a region, on every readKeep the consumer in the data's region, or replicate once. See cross-region cost.
Direct reads by an outside engine (A5, B2, B3)Their compute is billed to them, but the storage requests land on the bucket ownerWatch request costs on the bucket. Keep files compacted so there are fewer, larger ones.
Federated queries run again and again (B1)Each run reads the source again, and the source's owner carries the loadOnce a query is routine, ingest the table instead.
UniForm lag (A5)Iceberg metadata is produced after the Delta commitTest the lag before promising freshness.
Clean room compute (A3)Approved notebooks run on serverless compute, which is billedAgree who pays for runs before you build the room.
Copies from exports and pushes (A7, A8)Each one is a new copy outside governancePrefer a live route. If you must copy, expire the copy.

Security at a glance

RouteWho enforces row and column rulesWhat the other side can do with dataCan you revoke?
A1, A2 Delta SharingYou, through the views you shareRead it, and copy what they readYes, quickly
A3 Clean roomThe approved notebookSee only approved outputsYes, remove the collaborator
A5 Iceberg REST catalogOnly table-level checks at the catalogRead the files and copy themCredentials expire; revoke the grant
A6 SQL warehouseDatabricks, on every querySee results onlyYes, remove the grant
A7, A8 push or exportNobody, after it leavesKeep everythingNo
B1 Query federationThe source account and your grants(inbound) users see what the connection account can seeYes, drop the grant or connection
B2, B3 Reading others' filesOnly grants in Databricks(inbound) their row rules are not appliedYes, remove the role

Not confirmed here, check the current documentation: which AWS engines support Glue federation to Unity Catalog and in which regions; how many collaborators a Databricks clean room allows and which non-Databricks collaborators it supports; whether managed Iceberg tables are available in your account; the list of Lakehouse Federation sources and Lakeflow Connect connectors, which grows; which external catalogs catalog federation supports; and the size of UniForm metadata lag for your table type. This page was written from memory of the documentation.

FAQ

Questions people ask

Is a clean room the same as Delta Sharing?

No. Delta Sharing gives the other side rows to read. A clean room lets both sides run one approved piece of code over combined data, and only the approved results come out. Databricks clean rooms use Delta Sharing underneath.

Is UniForm a way of sharing data?

No. UniForm writes Iceberg metadata next to the Delta log so other engines can read the same files. Sharing needs a catalog and permissions as well, such as the Iceberg REST catalog or Delta Sharing.

Why not use Delta Sharing for Athena and Redshift?

Delta Sharing needs a client on the reading side, and to my knowledge Athena and Redshift do not have one. For your own AWS engines, use the Iceberg REST catalog or Glue federation. Use Delta Sharing for a different organisation or for Spark and pandas clients.

When should I ingest instead of federate?

When the same remote table is read again and again. Federation reads the source on every query, so a routine query is better served by a copy kept current.

Next

Where to go next

Related on this site: Cheapest way to move data in and out · UniForm · Cost and FinOps for the platform

All Databricks compute and cost pages · All data engineering · Databricks on this site