Another Shortcut Didn’t Move the Data. So We Did. — Snowflake to Fabric, Part 5
Hi Folks, Our source changed only a few times a day. I wanted to test scheduled Snowflake replication as an alternative to continuous mirroring, while keeping one shared layer for downstream Fabric teams. In Part 4 , the replica was readable. The cutover still failed downstream. One constraint was geography: the replica and its consumers were in different Azure regions. Another shortcut still…
Snowflake's source changed occasionally, enabling them to test scheduled replication as an alternative to continuous mirroring. However, the cutover still failed downstream due to geographical constraints. To overcome this, they copied the required files into the consuming region, addressing the regional restriction. The main issue remained how Fabric discovered and exposed the table.
The data flow involved Snowflake on AWS, Snowflake replica in Azure, copying files into OneLake in the consuming region, and then sharing the Bronze tables. Bronze refers to the shared source-data layer, which downstream teams reuse instead of running their own ingestion. The GIF illustrates the design and not a recorded run.
Copying the Parquet files was only part of the job. An Iceberg table consists of files, metadata, and schema. Copying the files alone leaves the old locations in the metadata, causing the reader to look in the wrong place. There were two metadata jobs: Iceberg metadata and Fabric's virtual Delta metadata.
After copying the files, they needed to generate the Iceberg metadata and publish the destination metadata using official Apache Iceberg Java APIs. Python coordinated file copying, checkpoints, and retries while an adapter connected the Iceberg library to their storage and publication process.
When a snapshot is compared with the last successful publication, only the changed files are copied, not the entire table. This incremental copying is not row-level CDC. The order of operations matters: copy the required files, publish the metadata, then record the successful checkpoint.
OneSchema change exposed a gap in their framework, stopping the run during preparation. They added handling for nullable-column additions, preserving existing field identities and types. Scoped SQL metadata synchronization cleared any observed lag in the SQL endpoint without copying the data again.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to