Migrate from Microsoft Fabric to Apache Spark and Trino

Moving off Fabric means copying Delta tables out of OneLake, rebuilding notebooks, pipelines and semantic models, and cutting reports over in a deliberate order. This page maps what moves cleanly and what needs rework.

On this page

How to migrate from Microsoft Fabric to Apache Spark and Trino

Tables are the part of a Fabric exit that copies cleanly. Lakehouse tables are stored as Delta Parquet in OneLake, so the data files and their transaction logs can be copied out through the ADLS Gen2 API and read by Spark with Delta Lake, then exposed to Trino through its Delta Lake connector. Notebooks, Data Factory pipelines, semantic models, reports, workspace roles and item-level permissions do not come with the data and must be rebuilt in the new stack. Plan the project around that split, and confirm with Microsoft's current documentation which Fabric warehouse objects are stored in a form you can read directly, since not every warehouse artifact may be exposed the same way as lakehouse tables.

The work is usually done by the data platform team, which owns the Spark cluster, object storage, the table catalog and the Trino coordinator, working with BI owners who rebuild their reports and confirm the numbers match. A partner is often brought in for the parts that have no direct equivalent, such as converting pipeline logic into Airflow DAGs, setting up access control, and writing the cutover runbook. Decide early who signs off on row counts and checksums per table, and who owns each report after cutover.

The main risks are not the copy itself. They are reports that depend on semantic model measures nobody documented, pipelines with hidden dependencies on a specific workspace, and permissions that were never mirrored into a new access control layer. Run both stacks in parallel for the reports that matter most, and keep the Fabric capacity running until each dependent report has been verified. Ask any partner for a written scope listing each Fabric item type, its target, its owner and its acceptance check before work starts.

What maps from Fabric to Spark, Delta and Trino

This table compares each Fabric component you will move with its closest self-hosted equivalent on Apache Spark, Delta Lake and Trino. Read the status column as a planning signal: clean means a direct open-format equivalent exists, needs rework means the logic or setup must be rebuilt, and gap means no equivalent is supplied by these projects. Confirm any Fabric-specific behavior with Microsoft before you commit to a cutover date.

Fabric componentSelf-hosted equivalentStatus and what to check
Lakehouse tablesDelta Lake tables on your object storage, read and written by Spark and TrinoClean. Delta tables are Parquet files plus a transaction log, so copied files keep their format. Confirm with Microsoft how OneLake exposes the table files you will copy.
Warehouse tablesDelta or Iceberg tables queried through Trino, or Spark SQLNeeds rework. Warehouse storage and T-SQL objects are not files you copy directly. Export the data as Delta or Parquet, then rebuild DDL, views and procedures in ANSI SQL.
Spark notebooksNotebooks on JupyterHub or scripts run on SparkNeeds rework. The Spark engine is the same family, but Spark has no notebook workspace of its own, so you must choose and operate JupyterHub or similar tooling.
Data Factory pipelinesApache Airflow DAGs with Spark or Trino tasksGap. Spark and Trino do not include a pipeline scheduler or connector catalog. Each pipeline must be redesigned in an orchestrator and each connector confirmed separately.
Power BI semantic models and reportsBI tool connected to Trino over Delta or Iceberg tablesGap. Measures, relationships and report definitions are not table data and do not export as Delta files. Rebuild them in your chosen BI tool and confirm licensing with Microsoft.
OneLake securityTrino access control (file-based, Apache Ranger or Open Policy Agent) with object storage permissionsNeeds rework. Roles, row or column rules and workspace permissions must be re-expressed in Trino and storage policies. Test each rule against the same users before cutover.
SQL analytics endpointsTrino coordinator endpoint over Delta or Iceberg catalogsNeeds rework. Trino speaks ANSI SQL, not T-SQL, so client connections and queries need review. Confirm the Trino authentication method your BI clients will use.

Which data, metadata and integrations to move

Moving off Fabric is three different jobs: copying table files, carrying over the metadata that makes them usable, and rebuilding the pipelines, notebooks and reports that read them. Fabric tables are Delta Parquet in OneLake, so the data is the easiest part. The cards below separate what copies as data from what must be rebuilt by hand.

Delta Parquet files via ADLS Gen2

Lakehouse table files can be read through the ADLS Gen2 API that OneLake exposes, so a copy job can pull the Parquet data files and their _delta_log folders into your own object storage. Copy whole table folders, not individual Parquet files, because the transaction log defines which files are current. Check that the copy preserves folder structure and that row counts and checksums match the source after each run. Confirm with Microsoft the current throughput and egress terms for your capacity region before sizing the copy window.

Delta Lake docs

Delta transaction log and table versions

The _delta_log folder holds the ordered commits that give each table its current state and its time travel history. If you copy only the latest Parquet files, you lose history and may end with a table that reads incorrectly, so copy the log with the data. Decide whether you need full history or only the current snapshot, since that choice drives copy size and the validation effort. Test one table end to end in Spark before scaling the copy to the rest.

Iceberg and UniForm reader access

Delta tables with UniForm enabled can also be read by Iceberg clients, which lets Trino use an Iceberg catalog while Fabric still writes Delta. This is useful during a phased cutover, but it depends on the table properties being set on the source tables and on your catalog supporting the same metadata. Confirm with each table owner which tables have UniForm enabled, and test reads from Trino before you point reports at them. Do not assume every table can be exposed this way.

Pipelines, notebooks and semantic models

Fabric pipelines, Dataflows, notebooks, semantic models and reports are not table data, so copying OneLake does not move them. Export the notebook source and pipeline definitions, then inventory each one with its owner, schedule and downstream consumers. Semantic models and reports must be rebuilt in your BI tool, so plan that work separately from the data copy. Treat this inventory as the first deliverable, since it sets the real scope.

Permissions and workspace roles

Fabric workspace roles, item-level sharing and row-level security rules do not travel with the Parquet files. Map each workspace role to a group in your identity provider, then rebuild access in Trino through its access control options, such as file-based rules, Apache Ranger or Open Policy Agent. Record who can read which schema before cutover, so that access is verified and not assumed. Ask your security team to review the mapping before any production user is moved.

Airflow DAGs, Spark jobs and BI connections

Scheduled Spark jobs, orchestration and BI connections must be recreated against the new endpoints. In a self-hosted stack, orchestration usually moves to Apache Airflow, Spark jobs run on your own cluster, and reports connect to Trino or Spark SQL. Each connection string, credential and refresh schedule changes, so keep a list of every consumer and run old and new outputs side by side. Confirm with each team which reports they need to keep unchanged.

Migration sequence that keeps reports running

This sequence moves Fabric lakehouse and warehouse tables, notebooks, pipelines and semantic models to Spark and Trino in an order that keeps existing reports answering correctly until each consumer is switched over.

  1. Inventory tables, jobs and reports

    Your team lists every OneLake table, Spark notebook, Data Factory pipeline, dataflow, semantic model and Power BI report, with its owner, refresh schedule and the downstream consumers that read it. Record which tables are Delta and which are Iceberg, and which permissions and workspace roles apply. The output is a dependency map that shows which reports depend on which tables and jobs. The step is done when the business owners have reviewed the map and confirmed that nothing in the list is missing.

  2. Copy one domain as a pilot

    Choose one business domain with a limited set of tables and reports, then copy its Delta Parquet files out of OneLake through the ADLS Gen2 API into your own object storage. Register the tables in your catalog, rebuild one notebook and one pipeline on Apache Spark, and point Trino at the Delta tables. The pilot is done when the copied data matches the source on row counts and agreed checksums, and the rebuilt job runs on schedule without manual edits. Record every gap you find, such as features that did not map cleanly.

  3. Run Trino and Fabric in parallel

    Keep the Fabric reports live while Trino answers the same queries against the self-hosted tables. Run a fixed set of representative queries on both engines each refresh cycle and compare results, including aggregates, joins, null handling and date boundaries. Schema differences between T-SQL and ANSI SQL often surface here. The output is a reconciliation log with each mismatch, its cause and its fix. The parallel run ends only when the mismatches are explained and the owners of each dependent report accept the results.

  4. Cut over consumers in dependency order

    Move the consumers that depend on the fewest upstream objects first, then work up the graph so that each report is repointed only after its tables are verified. Repoint each BI connection, scheduled refresh and downstream job, and keep the Fabric version available for rollback until the report owner signs off. The output is a signed-off cutover list that records the date and approver for each report. Confirm access controls on the new BI and query layer before a report goes live, because permissions do not move with the data.

  5. Decommission with retained backups

    Once every consumer has been cut over and the rollback window agreed in the cutover list has passed, stop the Fabric pipelines and schedules, then remove the workloads and capacity they used. Before deleting OneLake data, keep a retained, verified copy of the Delta files and the transaction logs in your backup storage, and document where it lives and how to restore it. The step is done when the decommission record lists each removed item, the backup location and a restore test that succeeded.

How Fabric and the self-hosted stack run side by side during cutover

The diagram starts in OneLake, where Fabric stores lakehouse tables as Delta Parquet. Files are copied out through the ADLS Gen2 API into object storage that the client controls, which is the trust boundary to check. Spark and Trino then read the same Delta tables, while Trino can also query Fabric or Snowflake during transition. BI tools move to the new Trino endpoint only after reports are validated, so row counts and report outputs should be compared at each step.

Fabric tables copied to client storage, then read by Spark and Trino.

What drives migration cost and duration

This table lists the inventory factors that most change the effort of moving a Fabric estate to self-hosted Spark and Trino, with why each one matters and how to shrink it. Use it to size your own inventory before asking for a fixed-scope quote, since the same factor can be small in one workspace and large in another.

DriverWhy it raises effortHow to keep it down
Table count and data volumeEach Delta table needs a copy path, a schema check and a row count comparison. Volume sets copy time and egress from OneLake, and large tables may need partition-aware copies.Inventory tables by size and access frequency, retire unused tables first, and copy the largest tables in batches with validation after each batch.
Notebooks and pipelinesFabric notebooks and Data Factory pipelines use Fabric-specific connectors, mssparkutils calls and workspace paths that must be rewritten to run on plain Spark and an orchestrator such as Apache Airflow.Group notebooks by shared library use, convert shared helpers first, and rewrite pipelines as versioned DAGs with tests against sample data.
Semantic models and reportsPower BI semantic models, DAX measures, relationships and report visuals do not export as data. Each model is rebuilt in the chosen BI tool, and every report needs its own check against Fabric outputs.Count models and reports that are actually used, rebuild shared measures once, and keep a list of which reports must match Fabric totals before cutover.
Fabric-only featuresItems such as Direct Lake mode, OneLake shortcuts, Fabric capacity-bound workloads and some T-SQL warehouse behavior have no direct equivalent and need a design decision each.List every Fabric-only feature in use, decide whether each is replaced, dropped or redesigned, and confirm the Spark and Trino behavior in your own tests.
Security and row-level rulesRow-level security, column masking and workspace roles must be recreated in Trino access control, file-based rules, Apache Ranger or Open Policy Agent, and each rule needs evidence that it works.Export the current rules as a table, map each one to a target control, and test denied and allowed queries for each role before any user moves over.
Team Spark and Trino skillsSpark does not ship a notebook workspace, scheduler, catalog or access layer, so the team must own cluster operations, tuning and upgrades that Fabric previously handled.Assess skills against the planned stack, train on the chosen cluster manager and table format early, and ask a partner to document runbooks as part of the scope.
Parallel run and cutover windowReports must run against both platforms until totals match, which keeps Fabric capacity and the self-hosted stack running at the same time.Agree the comparison criteria in writing, cut over report groups one at a time, and set the Fabric retirement date only after sign-off.

What usually goes wrong and how to prevent it

Most failed Fabric exits do not fail in the copy itself. They fail in the gaps between copied files, rewritten code, permissions and the reports that depend on them. The six risks below are the ones that most often break a lakehouse move, and each one has a check you can run before the old workspace is switched off.

Stale copies during cutover

If Fabric keeps accepting writes while files are copied through the ADLS Gen2 API, the new Delta tables fall behind the source within hours. Reports then read numbers that disagree with Fabric without any error. Freeze pipeline schedules on the source, run a final incremental copy, and compare row counts and the latest Delta version for each table before pointing consumers at the new Spark tables.

Delta Lake docs

Schema and type drift

Fabric warehouse tables are queried in T-SQL, while Spark SQL and Trino apply their own rules for decimals, timestamps, nullability and string collation. A column that reads correctly in one engine can change type or precision in another, so totals shift by small amounts. Write a type mapping table per column, and run the same aggregate queries in Fabric and in Trino and diff the results.

Permissions not carried over

Workspace roles, item-level sharing and row-level security in Fabric do not move with the files. A table copied to object storage is readable by whoever holds the storage keys, which is often broader than the original access model. Map each Fabric role to a group in your identity provider, then apply Trino file-based access rules or Apache Ranger policies and test that a restricted user still sees only the rows they saw before.

Trino security docs

Spark version support windows

Choosing a Spark line without checking its support window can leave the platform on a branch that stops receiving fixes within a year. Spark maintains each major and feature branch for six months and keeps the last release of each major line as an LTS for 18 months. Pick a line that is an LTS, record its end date in your operations runbook, and plan the next upgrade before the maintenance window closes.

Spark versioning policy

Delta and Iceberg version mismatches

Fabric writes Delta tables, but a Trino or Spark job may write Iceberg, or run a Delta reader too old for the table's protocol version. The result is tables that one engine cannot read or that silently lose features such as deletion vectors. Pin the Delta Lake and Trino versions together in a compatibility matrix, test a read and a MERGE from every engine on a copy of the largest table, and decide early whether UniForm is needed for Iceberg readers.

Report refresh breaking when datasets move

Power BI semantic models point at Fabric endpoints, and their refresh schedules, gateway connections and credentials are tied to those endpoints. Moving a dataset to a new source without repointing it causes refresh failures that only appear on the next scheduled run. Inventory every semantic model and report that reads the migrated tables, switch each one to its new connection in a test workspace, and confirm refresh succeeds before retiring the original.

How the migration differs by starting point

Most of the data already sits in OneLake as Delta Parquet tables, so the file copy is the largest technical task and the one most likely to dominate the schedule. Because Delta Lake is an Apache-2.0 Linux Foundation project and Spark and Trino both read Delta tables, the table format itself usually does not need to change. The work centers on moving files, verifying table versions and rebuilding the Spark jobs that wrote them.

  • Copy by table, not by folder: Copy each Delta table with its transaction log and check row counts and the latest version on both sides before cutover.
  • Keep Delta where possible: Delta Lake is supported by Spark and Trino, so keeping the format avoids a conversion step.
  • Rebuild scheduled Spark jobs: Notebook and pipeline logic does not move as data; each Spark job needs to be re-created and tested against the copied tables.
  • Plan time travel expectations: Confirm which historical versions consumers rely on, since those must survive the copy.

Confirm with the data owners which tables are the source of truth during the parallel run, and whether any consumer depends on OneLake shortcuts that will stop resolving.

Questions buyers ask before migrating from Fabric

What drives the cost of migrating off Microsoft Fabric?

The cost is set mainly by how much data and how many pipelines, notebooks and semantic models you move, and by how many people must rebuild and test them. Cost comes in three parts: the one-time migration work (inventory, data copy, rewriting Spark notebooks and Data Factory pipelines, rebuilding semantic models and reports, and validation), the new infrastructure (servers or cloud accounts, object storage, Spark and Trino clusters, a catalog and a BI tool), and the recurring operations (patching, upgrades, monitoring, on-call and backups). Egress charges from OneLake and the cloud provider that hosts your new object storage also depend on data volume. Ask any partner for a written scope that lists each of these items separately, so you can compare it with your current Fabric capacity and storage bills.

How long does a Fabric to Spark and Trino migration take?

Duration depends on scope, not on a fixed template. A small set of lakehouse tables with a few notebooks and one report layer takes far less time than an estate with many pipelines, cross-workspace dependencies and a large Power BI estate. The phases that usually set the timeline are the inventory, the data copy and validation, the rewrite of Spark code and orchestration, and the semantic model and report rebuild. Ask for a phased plan with dated milestones in the written scope. We do not publish a duration for this work, and any figure you see elsewhere should be checked against your own inventory of tables, jobs and reports.

What does our internal team need to provide during the migration?

Your team supplies the knowledge that is not in the files: who owns each table and pipeline, which reports business users depend on, which refresh schedules matter for month-end, and which data is restricted. You also need a named owner for identity and access (Microsoft Entra ID groups mapped to Trino or Spark access rules), a person who can approve data copies into your own storage, and a test group of business users who can confirm reports match. Plan for time from your data engineers to review rewritten jobs and from your BI owners to sign off each dashboard before the cutover.

Can our own team migrate off Fabric without an outside partner?

A capable internal team can do it, especially when the estate is small and the team already runs Spark or Trino. The harder parts are usually less about code and more about running the platform after cutover: securing Trino with the authentication and access control you choose, handling fault-tolerant execution settings, setting Spark patch cadence and keeping Kubernetes or YARN clusters healthy. Decide early whether you will own that run book, and ask any outside party to show how the work is documented, tested and handed over. DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted platforms in your own infrastructure under a written, fixed scope, and can also support your team on specific parts.

Will our Power BI reports keep running during the move?

They keep running only if the data they read stays available and the semantic model is rebuilt against the new source. Power BI reports on Fabric depend on semantic models that do not export as data, so each model must be recreated on a self-hosted BI tool or reconnected to Trino, and each report must be re-pointed and checked. The safe order is to copy data first, run both sides in parallel, compare results for each key measure, then switch consumers one group at a time. Keep the Fabric source live until every dashboard has been signed off by its business owner.

How does Trino fault-tolerant execution affect planning?

Fault-tolerant execution is off by default, so long batch queries can fail part-way and need rerunning unless you enable it. You turn it on with a QUERY or TASK retry policy. The TASK policy is the one the Trino documentation recommends for large batch queries, but it needs an exchange manager that spools intermediate data to S3, Azure Blob Storage, Google Cloud Storage or HDFS. That means extra storage and configuration to plan, test and monitor before you move heavy Fabric pipelines onto Trino. Confirm the policy and spooling target against the deployment docs for the Trino release you choose.

How do Spark support windows affect the migration plan?

Spark's versioning policy says major and feature release branches are maintained for 6 months, and the last release in each major line is an LTS maintained for 18 months. The 3.5.x extended LTS ends in November 2027 with security fixes only. Choose a Spark line whose support window covers the years you expect to run the platform, and pin the version your notebooks and Delta Lake release are tested against. Spark 4 is built with Scala 2.13 and has dropped Scala 2.12, so check any Scala libraries used in Fabric notebooks before you move them. Plan an upgrade cycle as recurring work, since feature releases now arrive quarterly from 4.3.0 onward.

How DeployOpen scopes and runs a Fabric exit

DeployOpen plans, implements, integrates, hardens, documents and supports the self-hosted stack inside the client's own infrastructure, whether that is their cloud account, a data center or an air-gapped network. For a Fabric exit, the written scope usually names each workload to move: the lakehouse tables in OneLake, the warehouse objects, the Spark notebooks, the Data Factory pipelines, the semantic models that feed Power BI, and the workspace permissions that gate them. It also names the target components, such as the object store, the Spark cluster manager, the table catalog, the Trino coordinator and workers, and the BI tool. Most engagements are fixed-scope, so deliverables, acceptance checks and timelines are agreed in writing before work starts. Ask for the scope to list which Fabric items are in and which are out, because semantic models and reports are rebuilt rather than exported.

The written deliverables should cover the parts that a client's security and compliance teams will review: the Spark and Trino deployment configuration, the Iceberg or Delta catalog setup, authentication and access control for Trino (for example, the file-based, Apache Ranger or Open Policy Agent options listed in the Trino security documentation), audit logging, backup of catalog metadata, and a cutover runbook with a rollback path. DeployOpen can also run security testing against the new stack before cutover and retest after fixes. Ongoing support, upgrades and continuous testing are available as a retainer, which is a separate written agreement. DeployOpen does not publish a price list. A quote follows from the written scope, so the reader should send the Fabric capacity sizes, data volumes, number of notebooks and pipelines, and the list of report consumers when requesting one.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.