<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by M Jahanzaib Anwar on Medium]]></title>
        <description><![CDATA[Stories by M Jahanzaib Anwar on Medium]]></description>
        <link>https://medium.com/@anwar.jahanzaib?source=rss-5d78fd43fa46------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wJ2csiHtUMayA2MoafdwrQ.png</url>
            <title>Stories by M Jahanzaib Anwar on Medium</title>
            <link>https://medium.com/@anwar.jahanzaib?source=rss-5d78fd43fa46------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 01:15:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anwar.jahanzaib/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Making Enterprise AI Useful: Why the Knowledge Layer Matters]]></title>
            <link>https://medium.com/@anwar.jahanzaib/making-enterprise-ai-useful-why-the-knowledge-layer-matters-7413f67b14c4?source=rss-5d78fd43fa46------2</link>
            <guid isPermaLink="false">https://medium.com/p/7413f67b14c4</guid>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[M Jahanzaib Anwar]]></dc:creator>
            <pubDate>Tue, 11 Aug 2026 09:32:35 GMT</pubDate>
            <atom:updated>2026-08-11T09:32:35.930Z</atom:updated>
            <content:encoded><![CDATA[<p>Generative AI is remarkably good at producing convincing answers. For enterprises, however, a convincing answer is not enough. It also needs to be based on the right information. As organizations move from experimenting with Large Language Models to building AI solutions that employees and customers can actually rely on, this distinction becomes increasingly important.</p><p>An LLM may be capable of reasoning, summarizing and generating high-quality text, but it does not automatically know what changed inside an organization yesterday. It does not know which version of an internal policy is currently valid, what information exists in a technical manual, or which documents a particular employee is allowed to access. This creates one of the central challenges in enterprise AI:</p><p><strong>How do we connect the intelligence of a language model with the organization&#39;s own trusted knowledge?</strong></p><p>Retrieval-Augmented Generation, or RAG, is one of the most important architectural patterns for solving this problem.</p><p>But building a useful RAG solution is about much more than connecting an LLM to a vector database. In practice, it quickly becomes a data, search and architecture problem.</p><p><strong>When the Model Does Not Have the Answer?</strong></p><p>Imagine an employee asks an internal AI assistant:</p><p><strong>“How many vacation days can I carry over to next year?”</strong></p><p>A general-purpose LLM may understand employment policies and know what is common across many organizations. But it does not automatically know the latest policy of this particular company. Without access to that information, the model may respond:</p><p><strong>“You can carry over up to 10 vacation days.”</strong></p><p>It sounds completely reasonable. The problem is that the company’s current policy may allow only five. This is one of the more difficult forms of <strong>hallucination </strong>in enterprise AI. The answer is not obviously strange or incorrect. It is plausible, professionally written and potentially wrong. The issue is not necessarily that the model lacks intelligence. <strong>It lacks the right context.</strong></p><p>One possible approach is to try to teach the model everything the organization knows. This is where<strong> fine-tuning</strong> often enters the conversation. Fine-tuning can be extremely useful when we want a model to behave in a particular way. It can help with specialized tasks, terminology, output formats, classification patterns or consistent responses. But frequently changing enterprise knowledge is a different problem. Policies change, technical documentation is updated, new contracts are signed. If the information changes regularly, continuously retraining a model to keep its internal knowledge current quickly becomes expensive.</p><p>This creates a fundamental shift in strategy. Rather than trying to cram all organizational knowledge directly into the model’s parameters through fine-tuning, we separate reasoning from memory. This is where Retrieval-Augmented Generation (RAG) comes in. Instead of asking the language model to answer only from what it learned during training, the application first searches the organization&#39;s knowledge sources. The most relevant information is retrieved and provided to the language model as context before an answer is generated. Conceptually, the flow is simple:</p><p><strong>Question → Retrieve relevant information → Provide context → Generate the answer</strong></p><p>Return to the vacation example.</p><p>The employee asks:</p><p><strong>“How many vacation days can I carry over to next year?”</strong></p><p>The system searches the company’s current HR documentation and retrieves the relevant policy.</p><p>The model receives the employee’s question together with a passage stating that employees may carry over a maximum of five days.</p><p>It can now answer:</p><p><strong>“You can carry over up to five vacation days to next year.”</strong></p><p>The system can also show where the information came from. That changes the role of the language model. Instead of expecting the model to remember the organization&#39;s knowledge, we ask it to <strong>reason over relevant evidence retrieved at the moment the question is asked.</strong></p><p><strong>The Difficult Part Happens Before the LLM</strong></p><p>A simple RAG demonstration can be built relatively quickly. A few documents are uploaded. The text is converted into embeddings. The embeddings are stored in a vector database. A user asks a question and the model generates an answer. The demo often looks impressive. Production is different. Enterprise knowledge rarely exists as a clean folder containing perfectly structured PDFs. Information may be spread across SharePoint, internal applications, databases, data platforms, APIs, technical manuals, CRM systems, support tools and decades of documents. Before an LLM can use this information effectively, it has to be collected, interpreted and prepared correctly. That makes the quality of the underlying data architecture critical.</p><p><strong>Chunking Is More Important Than It Looks:</strong></p><p>Once documents have been converted into usable text, they normally need to be divided into smaller pieces that can be retrieved independently. These pieces are usually called chunks. A simple approach might divide every document into fixed blocks of text. For an initial implementation, that can work surprisingly well. But arbitrary boundaries can create problems. A heading may end up in one chunk while the paragraph explaining it appears in another. A policy requirement may become separated from an important exception. A table may be split in the middle. The result is that the system technically retrieves relevant information while still missing the complete meaning. More advanced approaches can take document structure into account, such as headings, sections or paragraph boundaries. However, there is no universally correct chunking strategy. Different document types behave differently. The important principle is not to choose the most sophisticated technique. It is to <strong>test whether the retrieval strategy actually works for the questions users ask.</strong></p><h3>Why Hybrid Search Often Becomes Necessary</h3><p>This is where hybrid search becomes useful. Hybrid retrieval combines semantic vector search with traditional keyword-based search. Vector search is good at understanding meaning. Keyword search is good at finding exact terms. Used together, they can cover a wider range of enterprise queries.</p><p>Consider two questions:</p><p><strong>“What is our policy on working from home?”</strong></p><p>and</p><p><strong>“What does policy HR-1047 say about working from home?”</strong></p><p>The first query is primarily semantic.</p><p>The second contains an exact identifier that should not be ignored.</p><p>A hybrid retrieval approach can consider both. This becomes especially valuable in organizations where users frequently search for product numbers, contract IDs, technical terminology, names or internal codes. But hybrid retrieval should not automatically be added to every architecture. If standard vector retrieval already performs well, additional complexity may provide little value. The decision should come from evaluation rather than architecture trends.</p><p><strong>Retrieve Broadly, Then Rank Carefully:</strong></p><p>Another problem appears as the knowledge base grows. A search may return many potentially relevant pieces of information. Giving all of them to the language model is rarely ideal. It increases the amount of information the model needs to process and can introduce irrelevant context. One approach is to retrieve a broader set of candidate documents first and then apply a second ranking step. A reranker evaluates the original question together with the retrieved candidates and determines which pieces of information are most relevant.</p><p>The flow becomes:</p><p><strong>Question → Initial retrieval → Reranking → Best evidence → LLM</strong></p><p>This illustrates an important point.</p><p>As RAG systems mature, much of the engineering challenge starts looking less like traditional machine learning and more like sophisticated information retrieval. Finding the right information becomes just as important as generating the final response.</p><h3>RAG Does Not Automatically Make AI Trustworthy</h3><p>It is tempting to think that once RAG has been introduced, hallucination has been solved. Unfortunately, it is not that simple. A RAG system can still retrieve the wrong document. It can retrieve an outdated version. Important information may have been lost during document parsing.</p><p>There is also a significant security consideration. Imagine an employee asks an AI assistant about salary information. The organization&#39;s search index may contain salary documents. That does not mean every employee should be allowed to retrieve them. A production enterprise architecture therefore needs to respect the same access controls that protect the original information.</p><h3>Start With the Business Problem and the Data</h3><p>It is easy to begin by discussing embedding models, vector databases and LLM providers. The better starting point is usually much simpler:</p><p><em>What questions are we trying to answer?</em></p><p><em>Where does the information required to answer those questions currently live?</em></p><p><em>Who owns it?</em></p><p><em>How frequently does it change?</em></p><p><em>Which users should have access?</em></p><p><em>How reliable is the data?</em></p><p>These questions often influence the final architecture more than the choice of language model.</p><h3>The Knowledge Layer Is Becoming Part of Enterprise AI Architecture</h3><p>Much of the public discussion around generative AI has focused on models. <em>Which model is smartest? How large is the context window? How well does it perform on benchmarks? These questions remain important.</em></p><p>But as organizations move from experimentation to production, another question becomes increasingly important:</p><p><strong>What information did the model have when it generated the answer?</strong></p><p>A language model can reason, summaries and generate.</p><p>What it cannot do on its own is know which internal policy changed yesterday, where the latest technical documentation is stored or which information an individual employee is authorized to access. That is why the knowledge layer matters. RAG provides one of the most practical ways to connect generative AI with trusted organizational information. And ultimately, the quality of an enterprise AI solution will depend not only on how capable the model is, but on <strong>how reliably we can give it the right information, from the right source, for the right user, at the right time.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7413f67b14c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an Incremental Ingestion with Azure SQL CDC and Fabric Copy Jobs]]></title>
            <link>https://medium.com/@anwar.jahanzaib/building-an-incremental-ingestion-with-azure-sql-cdc-and-fabric-copy-jobs-3be79e575360?source=rss-5d78fd43fa46------2</link>
            <guid isPermaLink="false">https://medium.com/p/3be79e575360</guid>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[incremental-load]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[change-data-capture]]></category>
            <dc:creator><![CDATA[M Jahanzaib Anwar]]></dc:creator>
            <pubDate>Tue, 26 May 2026 10:35:38 GMT</pubDate>
            <atom:updated>2026-05-26T10:35:38.779Z</atom:updated>
            <content:encoded><![CDATA[<p>When ingesting data into a Lakehouse, copying an entire source table every time can be costly, slow, and unnecessary. As data grows, full reloads can also put extra pressure on the source system.</p><p>A better approach is <strong>incremental ingestion</strong>, where the first run loads the existing data and later runs process only the records that have changed.</p><p>In this article, I walk through how I built an incremental ingestion job by combining <strong>Change Data Capture (CDC)</strong> in Azure SQL Database with <strong>Microsoft Fabric Copy job</strong>.</p><p>CDC tracks inserts, updates, and deletes in the source database. Fabric Copy job can then use that change information to replicate changed data into the destination Lakehouse table without requiring custom watermark logic or manually written merge code.</p><p><strong>The Concepts: CDC and Fabric Copy Jobs</strong></p><p>Before moving into the implementation, it is useful to understand the two main parts of this setup.</p><p><strong>Change Data Capture (CDC):</strong> Change Data Capture, often called CDC, is a database feature that records insert, update, and delete activity on selected tables. Instead of relying on custom triggers or manually maintained watermark columns, CDC reads changes from the database transaction log and stores them in change tables. This makes it possible to identify what has changed in the source table since the last ingestion run.</p><p><strong>Fabric Copy Job:</strong> Microsoft Fabric Copy job is a data movement capability in Fabric Data Factory. It provides a simple way to move data from a source to a destination. For this scenario, the important feature is <strong>CDC-based incremental copy</strong>. When CDC is enabled on a supported source, Copy job can use the CDC information to process changed records after the initial load. This means the destination Lakehouse table can be kept up to date with new, updated, and deleted records from the source, depending on the selected configuration.</p><h4><strong>Step 1: Enabling Change Data Capture on the Database</strong></h4><p>Before tracking changes on a specific table, CDC must first be enabled at the database level. In Azure SQL Database, the user running these commands must have the required permissions. In many cases, this means being a member of the db_owner database role. Before enabling CDC, I first checked whether CDC was already enabled for the current database.</p><pre><br>SELECT <br>    name AS database_name,<br>    is_cdc_enabled<br>FROM sys.databases<br>WHERE name = DB_NAME();</pre><p>If the query returns <em>False</em>, you can enable CDC for the database by executing the following system stored procedure:</p><pre>EXEC sys.sp_cdc_enable_db;<br>GO</pre><h4>Step 2: Enabling CDC on the Source Tables</h4><p>Enabling CDC at the database level does not automatically start tracking your data. You must explicitly choose which source tables you want to monitor for your incremental copy.</p><p>In this scenario, i will enable CDC on the SalesLT.Product table using the sys.sp_cdc_enable_table stored procedure.</p><ul><li>@source_schema: The schema the table belongs to.</li><li>@source_name: The exact name of the table to track.</li><li>@role_name: Controls who is allowed to read the CDC change data. For this tutorial, I am using NULL, which means no separate gating role is created. (In a strict production environment, you would use a dedicated role here).</li></ul><pre>EXEC sys.sp_cdc_enable_table<br>    @source_schema = &#39;SalesLT&#39;,<br>    @source_name   = &#39;Product&#39;,<br>    @role_name     = NULL;<br></pre><h4>Validating the Table Configuration</h4><p>To ensure the table is now actively recording inserts, updates, and deletes, check the is_tracked_by_cdc column in the sys.tables view. A value of 1 confirms that tracking is live.</p><pre>SELECT <br>    s.name AS schema_name,<br>    t.name AS table_name,<br>    t.is_tracked_by_cdc<br>FROM sys.tables t<br>JOIN sys.schemas s<br>    ON t.schema_id = s.schema_id<br>WHERE s.name = &#39;SalesLT&#39;<br>  AND t.name = &#39;Product&#39;;</pre><p>At this stage, Azure SQL Database is ready to capture insert, update, and delete activity for the SalesLT.Product table.</p><h4><strong>Step 3: Create the Fabric Copy Job</strong></h4><p>With CDC enabled in the source database, the next step is to create the Copy job in Microsoft Fabric.</p><p>In Fabric, I created a new <strong>Copy job</strong> item and selected Azure SQL Database as the source.</p><p>The source table for this example is:<em> SalesLT.Product. </em>The destination is a Fabric Lakehouse table. For this scenario, the destination is a table, not files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*heAW4j4fNg5UEE-jjB798g.png" /></figure><h4><strong>Step 4: Select Incremental Copy</strong></h4><p>After selecting the source and destination, the most important configuration choice is the read method.</p><p>For this example, I selected: <strong>Incremental Copy</strong></p><p>This tells Fabric Copy job that I do not want to copy the full source table every time. The first run creates the initial baseline in the destination. After that, Copy job uses the CDC information from the source to process only the changed records. This is the main reason CDC-based incremental copy is useful. Instead of repeatedly moving the same data, the job focuses only on inserts, updates, and deletes that happened after the previous run</p><h4><strong>Step 5: Configure the Write Method as Merge</strong></h4><p>Reading only changed data is only half of the solution. The changed records also need to be applied correctly to the destination table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i_sSwrVUD0DFI0GluVWhbg.png" /></figure><p>Under the <strong>Write method</strong> settings, we select <strong>Merge</strong>.</p><ul><li><strong>Why not Append?</strong> If an existing product’s price is updated in the source, CDC will flag that as a change. If we simply appended that change to our Lakehouse, we would end up with duplicate rows for the same product.</li><li><strong>Why not Overwrite?</strong> Overwriting would defeat the entire purpose of an incremental load, as it would wipe out our historical data and only leave us with the tiny batch of recent changes.</li><li><strong>Why Merge?</strong> Merge performs an “upsert.” It intelligently looks at the incoming CDC batch and applies it to the existing Lakehouse table. If a row is new, it inserts it. If a row already exists and was modified in the source, it updates it. If a row was deleted in the source, the merge operation can replicate that deletion in the destination.</li></ul><h4><strong>Defining the Key Column</strong></h4><p>For the Merge operation to work, the engine needs to know how to identify a specific row. In the <strong>Key columns for merge</strong> section, we must map the unique identifier for our table.</p><p>For the SalesLT.Product table, we select <strong>ProductID</strong>.</p><p>This tells the Copy Job: <em>“When you read the incremental changes, use </em><em>ProductID to look up the record in the Lakehouse. If </em><em>ProductID 706 has a new price in the CDC logs, find </em><em>ProductID 706 in the destination and update that specific row.&quot;</em></p><p>By configuring these specific Read and Write methods, you get a fully functional, highly scalable incremental pipeline without writing a single line of complex watermark or upsert logic.</p><h4><strong>Step 6: Run the Copy Job for the First Time</strong></h4><p>After configuring the source, destination, read method, write method, and key column, I ran the Copy job.</p><p>On the first run, the destination table does not yet contain the source data. Because of that, Copy job performs the initial load and copies the existing records from the Azure SQL table into the Lakehouse table. This first run creates the baseline. After the first run, the Lakehouse table contains the current data from SalesLT.Product.</p><h4><strong>Step 7: Validate Inserts, Updates, and Deletes</strong></h4><p>After the initial load, I tested the three main change scenarios from the source table: inserting a new product, updating an existing product price, and deleting a product. All three scenarios worked smoothly. The new product was copied into the Lakehouse table, the updated product price was applied to the existing record, and the deleted product was removed from the destination as expected. This makes the process very easy to maintain because the Copy job can keep the Lakehouse table closely synchronized with the source database without requiring custom watermark logic or manually written merge code. The Copy job can also be scheduled based on business requirements.</p><h4>Conclusion</h4><p>In this article, I built an incremental ingestion job using Azure SQL CDC and Microsoft Fabric Copy job. The first run created the initial baseline in the Fabric Lakehouse table. After that, the Copy job used CDC information from Azure SQL Database to process only the changed records.</p><p>By using Incremental copy and Merge, the destination table can stay closely synchronized with the source table without requiring custom watermark logic or manually written merge code.</p><p>This pattern is useful when the goal is to keep a Lakehouse table up to date with a SQL source while reducing unnecessary data movement and avoiding duplicate records.</p><p>For source tables where inserts, updates, and deletes matter, CDC-based Copy job provides a clean and scalable way to build incremental ingestion into Microsoft Fabric.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3be79e575360" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Orchestrating a Metadata-Driven Pipeline in Microsoft Fabric]]></title>
            <link>https://medium.com/@anwar.jahanzaib/orchestrating-a-metadata-driven-pipeline-in-microsoft-fabric-19abaa3ca837?source=rss-5d78fd43fa46------2</link>
            <guid isPermaLink="false">https://medium.com/p/19abaa3ca837</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[data-lakehouse]]></category>
            <category><![CDATA[medallion-architecture]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <dc:creator><![CDATA[M Jahanzaib Anwar]]></dc:creator>
            <pubDate>Wed, 20 May 2026 11:36:35 GMT</pubDate>
            <atom:updated>2026-05-21T13:41:50.618Z</atom:updated>
            <content:encoded><![CDATA[<p>In the previous part of this series, we built the “brain” of our ingestion framework: a watermark control table residing in a metadata schema. That table holds the configuration for our source system, knowing exactly which tables to load, where they should land, and what their last successful watermark value was.</p><p>Now, we need to build the engine that executes those instructions.</p><p>In this article, we will build a dynamic orchestration pipeline using the Microsoft Fabric.</p><p><strong>A quick note on architecture:</strong> There are many ways to ingest data into Microsoft Fabric. The pipeline pattern we are building here is not the <em>only</em> way to do it. However, using a pipeline driven by a metadata table is a classic, highly scalable approach. It separates configuration from execution, meaning you can add dozens of new tables to your ingestion process later without ever having to edit this pipeline again.</p><p>Here is the pipeline we are going to build:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jcZzXYNLZhrqDXFETwlBHQ.png" /><figcaption>Data Ingestion Pipeline</figcaption></figure><p>Let’s break down this pipeline step by step, starting with how we read our control table.</p><p><strong>Step 1: The Lookup Activity (Reading the Metadata)</strong></p><p>The first step in our pipeline is to read the instructions we saved in the Lakehouse. To do this, we drag a <strong>Lookup</strong> activity onto the canvas. I named mine lkp_get_active_saleslt_tables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*MYJILoTxx4HUGMRmZ-CkrA.png" /><figcaption>Lookup Activity Settings</figcaption></figure><p>The goal of this activity is to query our metadata.ingestion_control table and return a list of all the tables we want to process.</p><ul><li><strong>Connection &amp; Lakehouse:</strong> Ensure your workspace connection is selected and point the Lakehouse dropdown to the lakehouse where you created the control table (in my case, DemoLakehouse).</li><li><strong>Root folder:</strong> Select <strong>Tables</strong>. Our ingestion_control table is a Delta table, so it resides in the Tables section of OneLake, not under Files.</li><li><strong>Use query:</strong> Select <strong>T-SQL Query (Preview)</strong>. Instead of pulling the entire table into the pipeline’s memory, we want to push down a specific query to filter for active tables only.</li><li>Make sure First row only is disabled, because we want the Lookup activity to return all active table rows.</li></ul><pre>SELECT<br>    source_schema,<br>    source_table,<br>    target_landing_path,<br>    load_type,<br>    watermark_column,<br>    last_watermark_value,<br>    is_active<br>FROM metadata.ingestion_control<br>WHERE is_active = 1<br>ORDER BY source_table<br></pre><p><strong>Previewing the Data: </strong>Before moving on, it is always a good idea to validate that the pipeline can actually read the Lakehouse table. By clicking the <strong>Preview data</strong> button next to the query box, you can run a quick test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*fU4ZflUK0aumYISSDtfESw.png" /><figcaption>Query result</figcaption></figure><p>As you can see, the Lookup activity successfully queries the Delta table and returns our metadata configuration. The pipeline now has its instructions.</p><p><strong>Step 2: The ForEach Activity (Iterating the Metadata)</strong></p><p>With our Lookup activity successfully returning a JSON array of our active tables, we need to pass that array into a loop.</p><p>To do this, drag a <strong>ForEach</strong> activity onto the canvas and connect the green success output from the Lookup activity to it. I named this activity fe_each_saleslt_table.</p><p><strong>Configuring the Settings:</strong> Click on the ForEach activity and navigate to the <strong>Settings</strong> tab.</p><ul><li><strong>Sequential:</strong> For this demo, I leave Sequential unchecked. This allows Fabric to process multiple items from the loop in parallel instead of processing one table at a time. This can make the ingestion faster when multiple tables need to be copied.</li><li><strong>Items:</strong> This is the most important field. We need to tell the loop what to iterate over. Click “Add dynamic content” and enter the following expression to reference the output array from our Lookup activity:</li></ul><pre>@activity(&#39;lkp_get_active_saleslt_tables&#39;).output.value</pre><p>With this setup, the Copy activity is completely hands-off. It dynamically figures out what data to pull.</p><p><strong>Step 3: The Copy Activity (Dynamic Data Movement)</strong></p><p>Now for the heavy lifting. Double-click on the ForEach activity (or click the edit pencil icon) to open the inner canvas. This is where we define what happens to <em>each individual table</em> during the loop.</p><p>Drag a <strong>Copy data</strong> activity onto this inner canvas. I named mine cp_sales_table_to_lh.</p><p>Because this Copy activity sits inside the ForEach loop, we have access to a special dynamic function called @item(). The @item() function represents the current row of metadata being processed.</p><p><strong>Configuring the Source:</strong> Navigate to the Source tab of the Copy activity and select your Azure SQL Database connection. Instead of selecting a static table from the dropdown, we will use our metadata to build a dynamic SQL query. Select the <strong>Query</strong> radio button, click “Add dynamic content,” and paste this expression:</p><pre>@if(<br>    equals(toLower(item().load_type), &#39;incremental&#39;),<br>    concat(<br>        &#39;SELECT * FROM &#39;,<br>        item().source_schema,<br>        &#39;.&#39;,<br>        item().source_table,<br>        &#39; WHERE &#39;,<br>        item().watermark_column,<br>        &#39; &gt; &#39;&#39;&#39;,<br>        formatDateTime(item().last_watermark_value, &#39;yyyy-MM-ddTHH:mm:ss.fff&#39;),<br>        &#39;&#39;&#39;&#39;<br>    ),<br>    concat(<br>        &#39;SELECT * FROM &#39;,<br>        item().source_schema,<br>        &#39;.&#39;,<br>        item().source_table<br>    )<br>)</pre><p><strong>Why this query is powerful:</strong> This single expression handles both of our load strategies smoothly.</p><ul><li>By using toLower(item().load_type), we make the check case-insensitive, preventing bugs if a user types &quot;Incremental&quot; or &quot;incremental&quot; in the control table.</li><li>If the row is flagged as <strong>incremental</strong> (like our Customer table), it injects the WHERE clause using the watermark column and timestamp, evaluating to a query like: SELECT * FROM SalesLT.Customer WHERE ModifiedDate &gt; &#39;1900-01-01T00:00:00.000&#39;.</li><li>If the row evaluates to anything else, such as <strong>Full</strong> (for our ProductCategory table), it safely defaults to a full extraction: SELECT * FROM SalesLT.ProductCategory.</li><li><strong>SELECT *:</strong> For this guide, I am using SELECT * to keep the pattern simple and easy to follow. In a true production pipeline, I would be much more careful with explicit column selection to handle source schema changes.</li></ul><p><strong>Configuring the Destination:</strong> Navigate to the Destination tab. We want to land this raw data as Parquet files in our OneLake before we transform it into Bronze tables.</p><ul><li><strong>Workspace data store type:</strong> Lakehouse</li><li><strong>Root folder:</strong> Files</li><li><strong>File path:</strong> Instead of just dumping everything into a single folder, we are going to build a dynamic, folder structure using the current date and the unique Pipeline Run ID. Select “Add dynamic content” for the Directory field and paste this expression:</li></ul><pre>@concat(<br>    item().target_landing_path,<br>    &#39;load_date=&#39;,<br>    formatDateTime(utcNow(), &#39;yyyy-MM-dd&#39;),<br>    &#39;/run_id=&#39;,<br>    pipeline().RunId,<br>    &#39;/&#39;<br>)</pre><p><strong>Why this destination path matters :</strong> If our pipeline runs on May 20th for the Customer table, this expression dynamically generates a folder path that looks like this: landing/azure_sql_saleslt/SalesLT/Customer/load_date=2026-05-20/run_id=a1b2c3d4.../</p><p>This is incredibly powerful for a data lake because:</p><ol><li><strong>Traceability:</strong> You know exactly which pipeline run generated which batch of files.</li><li><strong>Idempotency:</strong> If the pipeline fails halfway through or runs twice in one day, the files will not blindly overwrite each other. Each run gets its own isolated folder.</li><li><strong>Clean processing:</strong> In our next step, the Notebook that loads the Bronze layer can read exactly what was dropped into this specific run_id folder, process it, and move on safely.</li><li><strong>File format:</strong> Parquet</li></ol><p>With this setup, the Copy activity is completely hands-off. It dynamically figures out what data to pull, how to filter it, and exactly where to land it in one lake.</p><p><strong>Conclusion: The Raw Data Has Landed</strong></p><p>In this article, we took the metadata configuration from our control table and brought it to life using a Microsoft Fabric pipeline.</p><p>By combining a Lookup activity with a ForEach loop, we built a dynamic engine that can process any number of tables without needing manual updates. The Copy activity intelligently determines whether to execute a full extract or an incremental load using our watermark values, and securely lands the data into dynamically generated, partitioned folders.</p><p>At this exact moment in our architecture, the raw data from Azure SQL is successfully sitting in the “Files” section of our OneLake as Parquet files.</p><p>Now that our data has landed, we need to transform it. In the next part of this series, we will open up those Spark notebooks. We will write the PySpark code to read these raw Parquet files, merge them into our Bronze Delta tables, and finally, update our control table with the new watermark values so the pipeline is ready for its next run.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19abaa3ca837" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Watermark Control Table in Microsoft Fabric Lakehouse]]></title>
            <link>https://medium.com/@anwar.jahanzaib/building-a-watermark-control-table-in-microsoft-fabric-lakehouse-56472de863ae?source=rss-5d78fd43fa46------2</link>
            <guid isPermaLink="false">https://medium.com/p/56472de863ae</guid>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[spark-sql]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[incremental-load]]></category>
            <dc:creator><![CDATA[M Jahanzaib Anwar]]></dc:creator>
            <pubDate>Wed, 20 May 2026 11:30:07 GMT</pubDate>
            <atom:updated>2026-05-20T11:30:07.319Z</atom:updated>
            <content:encoded><![CDATA[<p>In the first story, we introduced the foundation for building a Medallion Lakehouse architecture in Microsoft Fabric.<br> We covered Microsoft Fabric, OneLake, Lakehouse, Medallion Architecture, and why a watermark strategy is important for incremental data loading.</p><p>Now we move towards implementation.</p><p>In this part, we will create the first technical building block of the solution: the watermark control table inside a Microsoft Fabric Lakehouse.</p><p><strong>Why we need a watermark control table?</strong></p><p>In this implementation, I want the ingestion process to be incremental instead of copying the full source tables every time. In many real data platforms, source tables can grow very large over time. If the pipeline reloads everything on every run, the process can become slow, expensive, and difficult to maintain. A watermark control table gives the pipeline a simple way to remember what was processed in the previous successful run. For example, if the source table has a column like ModifiedDate, the latest processed value can be stored in the control table. On the next run, the pipeline can use that value to copy only the newer or changed rows.<br> This is the main reason I am introducing a control table. It gives the ingestion process a memory. It also makes the pipeline easier to scale when more source tables are added later. Instead of changing the pipeline logic for every table, the table configuration can be managed from one central place.</p><p><strong>What metadata we should store?</strong></p><p>The control table is not only for storing the last watermark value. It can also store the basic configuration the pipeline needs to process each source table. For this example, I want to store the source schema name and source table name. I also want to store the watermark column, because different tables may use different columns for incremental loading. Some tables may use ModifiedDate, while others may use UpdatedDate, LastModified, or another similar column. The control table will also store the last successfully processed watermark value. This value tells the pipeline where to continue from in the next run. I am also including target information, such as the raw landing folder, so the pipeline knows where to place the copied data. An is_active flag is useful because it allows a table to be included or excluded without changing the pipeline itself.<br> The idea is to keep the ingestion logic flexible and metadata-driven.</p><h3>Prerequisites</h3><p>Before diving into the code, ensure you have the following setup ready in your environment:</p><ul><li>A Microsoft Fabric workspace.</li><li>A Fabric Lakehouse.</li><li>A Fabric Notebook attached to your Lakehouse.</li><li>An Azure SQL Database containing the AdventureWorksLT / SalesLT sample data.</li></ul><p><strong>Why I am creating a separate metadata schema?</strong></p><p>Before creating the control table, I am creating a separate schema called metadata. This is not because every project must use this exact name or setup. The reason is simply to keep technical control objects separate from the actual business data tables. In this architecture, the Lakehouse will contain different types of objects: raw/bronze tables, silver tables, and technical configuration tables. If everything is created in the same place, the structure can become harder to understand as the project grows.<br>By placing the control table inside a metadata schema, the purpose of the table becomes clearer. It tells anyone reading the Lakehouse that this table is used for pipeline control, not business reporting. This also gives space for future metadata objects, such as audit tables, pipeline run logs, or error tracking tables. So the schema is mainly a management choice. It helps make the Lakehouse cleaner and easier to work with.</p><p><strong>Important Note:</strong> I executed this code inside a Microsoft Fabric <strong>Notebook</strong> using a <strong>Spark SQL</strong> with the Lakehouse attached.</p><pre>#spark sql <br>Create Schema if not EXISTS metadata</pre><pre>-- ============================================================<br>-- PHASE 1: Create control table<br>--<br>-- Table:<br>--   metadata.ingestion_control<br>--<br>-- Purpose:<br>--   This table stores the configuration and watermark state<br>--   required for incremental ingestion from Azure SQL into<br>--   Microsoft Fabric.<br>--<br>-- How it will be used later:<br>--   1. Pipeline Lookup activity reads active rows from this table.<br>--   2. ForEach activity loops through each source table.<br>--   3. Copy activity copies data into OneLake/Lakehouse Files.<br>--   4. Notebook reads the landed files and creates Bronze tables.<br>--   5. After successful incremental load, the watermark value<br>--      can be updated for the next run.<br>--<br>-- ============================================================</pre><pre>CREATE TABLE IF NOT EXISTS metadata.ingestion_control<br>(<br>    -- Source schema in Azure SQL.<br>    -- Example: &#39;SalesLT&#39;<br>    --<br>    -- Why needed?<br>    --   SQL tables are normally referenced as schema.table.<br>    --   Example: SalesLT.Customer<br>    --<br>    -- What happens if we remove it?<br>    --   The pipeline would have to assume all tables are in one<br>    --   schema, such as dbo. That is not flexible.<br>    source_schema STRING,<br><br>    -- Source table name in Azure SQL.<br>    -- Example: &#39;Customer&#39;<br>    --<br>    -- Why needed?<br>    --   The pipeline needs to know which table to copy.<br>    -- What happens if we remove it?<br>    --   The pipeline cannot dynamically select source tables.<br>    source_table STRING,<br><br>    -- Target folder path in the Fabric Lakehouse Files area.<br>    -- Example:<br>    --   Files/landing/azure_sql_saleslt/SalesLT/Customer/<br>    -- Why needed?<br>    --   Copy activity needs a destination path for each table.<br>    --   This lets every source table land in its own folder.<br>    target_landing_path STRING,<br><br>    -- Load strategy for the table.<br>    -- Example values:<br>    --   &#39;Full&#39;<br>    --   &#39;Incremental&#39;<br>    --<br>    -- Why needed?<br>    --   Some small/reference tables can be fully reloaded.<br>    --   Larger transactional tables should usually be loaded<br>    --   incrementally.<br>    load_type STRING,<br><br>    -- Column used to detect new or changed rows.<br>    -- Example: &#39;ModifiedDate&#39;<br>    --<br>    -- Why needed?<br>    --   A watermark strategy needs a column that can identify<br>    --   records newer than the previous successful run.<br>    watermark_column STRING,<br><br>    -- Stores the last successfully processed watermark value.<br>    -- Example:<br>    --   2024-01-01 00:00:00<br>    --<br>    -- Why needed?<br>    --   The next pipeline run can use this value to copy only<br>    --   newer rows.<br>    --<br>    -- Example logic:<br>    --   WHERE ModifiedDate &gt; last_watermark_value<br>    last_watermark_value TIMESTAMP,<br><br>    -- Controls whether this table should be processed.<br>    -- TRUE  = include in pipeline<br>    -- FALSE = skip this table<br>    --<br>    -- Why needed?<br>    --   Lets us disable a table without deleting its configuration.<br>    is_active BOOLEAN,<br><br>    -- When this metadata row was created.<br>    -- Why needed?<br>    --   Helpful for audit/debugging.<br>    created_at TIMESTAMP,<br><br>    -- When this metadata row was last updated.<br>    -- Why needed?<br>    --   Helpful when watermark values or configuration change.<br>    updated_at TIMESTAMP<br>);</pre><p><strong>Choosing the Source Tables: SalesLT for Incremental and Full Load Patterns</strong></p><p>For this series, I am using the <strong>AdventureWorksLT / SalesLT</strong> sample data as the source system. Microsoft provides AdventureWorks sample databases for learning and testing SQL Server and Azure SQL scenarios, and Fabric SQL database also supports loading the AdventureWorksLT sample schema for getting started quickly.</p><p>The goal is not only to copy tables from source to target. The goal is to build a small but realistic pattern that can support:</p><ul><li>full loads</li><li>incremental loads</li><li>watermark-based ingestion</li><li>bronze, silver, and gold layers</li><li>a future star schema</li></ul><h3>Selected SalesLT tables</h3><p><strong>SalesLT.Customer</strong><br> Planned role: Customer dimension<br> Load strategy: Incremental</p><p><strong>SalesLT.Address</strong><br> Planned role: Address/customer enrichment<br> Load strategy: Incremental</p><p><strong>SalesLT.CustomerAddress</strong><br> Planned role: Customer-address relationship<br> Load strategy: Incremental</p><p><strong>SalesLT.Product</strong><br> Planned role: Product dimension<br> Load strategy: Incremental</p><p><strong>SalesLT.ProductCategory</strong><br> Planned role: Product category reference<br> Load strategy: Full</p><p><strong>SalesLT.SalesOrderHeader</strong><br> Planned role: Sales order header<br> Load strategy: Incremental</p><p><strong>SalesLT.SalesOrderDetail</strong><br> Planned role: Sales order line fact data<br> Load strategy: Incremental</p><p><strong>Populating the Control Table</strong></p><p>Now that our table structure is ready, we need to insert the configuration data for the SalesLT tables we selected.</p><p>For the tables using the Incremental load strategy, we will set a default last_watermark_value (like 1900-01-01). This ensures that the very first pipeline run will pull all existing historical data. After that first run, the pipeline will update this value to the latest timestamp, and subsequent runs will only pull new or changed records. For the Full load table (ProductCategory), the watermark column and value can be left as NULL.</p><p>We can run the following Spark SQL script to insert our initial metadata:</p><pre>DELETE FROM metadata.ingestion_control<br>WHERE source_schema = &#39;SalesLT&#39;;<br><br><br>INSERT INTO metadata.ingestion_control<br>(<br>    source_schema,<br>    source_table,<br>    target_landing_path,<br>    load_type,<br>    watermark_column,<br>    last_watermark_value,<br>    is_active,<br>    created_at,<br>    updated_at<br>)<br>VALUES<br>(<br>    &#39;SalesLT&#39;,<br>    &#39;Customer&#39;,<br>    &#39;landing/azure_sql_saleslt/SalesLT/Customer/&#39;,<br>    &#39;Incremental&#39;,<br>    &#39;ModifiedDate&#39;,<br>    TIMESTAMP(&#39;1900-01-01 00:00:00&#39;),<br>    TRUE,<br>    current_timestamp(),<br>    current_timestamp()<br>),<br>(<br>    &#39;SalesLT&#39;,<br>    &#39;Address&#39;,<br>    &#39;landing/azure_sql_saleslt/SalesLT/Address/&#39;,<br>    &#39;Incremental&#39;,<br>    &#39;ModifiedDate&#39;,<br>    TIMESTAMP(&#39;1900-01-01 00:00:00&#39;),<br>    TRUE,<br>    current_timestamp(),<br>    current_timestamp()<br>),<br>(<br>    &#39;SalesLT&#39;,<br>    &#39;CustomerAddress&#39;,<br>    &#39;landing/azure_sql_saleslt/SalesLT/CustomerAddress/&#39;,<br>    &#39;Incremental&#39;,<br>    &#39;ModifiedDate&#39;,<br>    TIMESTAMP(&#39;1900-01-01 00:00:00&#39;),<br>    TRUE,<br>    current_timestamp(),<br>    current_timestamp()<br>),<br>(<br>    &#39;SalesLT&#39;,<br>    &#39;Product&#39;,<br>    &#39;landing/azure_sql_saleslt/SalesLT/Product/&#39;,<br>    &#39;Incremental&#39;,<br>    &#39;ModifiedDate&#39;,<br>    TIMESTAMP(&#39;1900-01-01 00:00:00&#39;),<br>    TRUE,<br>    current_timestamp(),<br>    current_timestamp()<br>),<br>(<br>    &#39;SalesLT&#39;,<br>    &#39;ProductCategory&#39;,<br>    &#39;landing/azure_sql_saleslt/SalesLT/ProductCategory/&#39;,<br>    &#39;Full&#39;,<br>    NULL,<br>    NULL,<br>    TRUE,<br>    current_timestamp(),<br>    current_timestamp()<br>),<br>(<br>    &#39;SalesLT&#39;,<br>    &#39;SalesOrderHeader&#39;,<br>    &#39;landing/azure_sql_saleslt/SalesLT/SalesOrderHeader/&#39;,<br>    &#39;Incremental&#39;,<br>    &#39;ModifiedDate&#39;,<br>    TIMESTAMP(&#39;1900-01-01 00:00:00&#39;),<br>    TRUE,<br>    current_timestamp(),<br>    current_timestamp()<br>),<br>(<br>    &#39;SalesLT&#39;,<br>    &#39;SalesOrderDetail&#39;,<br>    &#39;landing/azure_sql_saleslt/SalesLT/SalesOrderDetail/&#39;,<br>    &#39;Incremental&#39;,<br>    &#39;ModifiedDate&#39;,<br>    TIMESTAMP(&#39;1900-01-01 00:00:00&#39;),<br>    TRUE,<br>    current_timestamp(),<br>    current_timestamp()<br>);<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0fxLd4oSfr8TasRCU9wSSg.png" /><figcaption>Ingestion Control Table inside the demo Lakehouse</figcaption></figure><h3>Conclusion: Ready for Orchestration</h3><p>In this part of the series, we successfully laid the groundwork for a metadata-driven ingestion framework. We built a centralized ingestion_control table inside a metadata schema in our Fabric Lakehouse.</p><p>By doing this, we have given our future ingestion process a memory. It now knows which tables to load, where they should land, whether they require a full or incremental load, and exactly where it left off during the last successful run. This modular approach ensures that as our data platform grows, adding a new source table is as simple as inserting a new row into this configuration table.</p><p>In the next part of this series, we will build that engine. We will open the Microsoft Fabric and construct a dynamic pipeline using <em>Lookup </em>and <em>ForEach </em>activities to read our control table, ingest the SalesLT data incrementally, and land it safely into our lakehouse.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56472de863ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Medallion Lakehouse in Microsoft Fabric Using a Watermark Strategy]]></title>
            <link>https://medium.com/@anwar.jahanzaib/building-a-medallion-lakehouse-in-microsoft-fabric-using-a-watermark-strategy-ac40224cc236?source=rss-5d78fd43fa46------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac40224cc236</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[incremental-load]]></category>
            <category><![CDATA[medallion-architecture]]></category>
            <category><![CDATA[data-lake]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <dc:creator><![CDATA[M Jahanzaib Anwar]]></dc:creator>
            <pubDate>Tue, 12 May 2026 11:38:46 GMT</pubDate>
            <atom:updated>2026-05-12T11:38:46.104Z</atom:updated>
            <content:encoded><![CDATA[<h4>A practical foundation for designing incremental data pipelines in Microsoft Fabric</h4><p>In the era of Big Data, the ‘Copy-Paste’ approach to data engineering is dead. The real challenge is building a system that scales without becoming a ‘Data Swamp.’ This series is your blueprint for a production-ready Medallion Lakehouse in Microsoft Fabric..</p><p>In this series, I will build a practical medallion lakehouse architecture using</p><ul><li><strong>Source:</strong> Azure SQL Database</li><li><strong>Storage:</strong> OneLake (The “OneDrive” for Data)</li><li><strong>Compute:</strong> Fabric Notebooks (Spark) &amp; Data Factory</li><li><strong>Serving:</strong> Fabric Warehouse &amp; Semantic Models</li></ul><p>Before writing any code or creating pipelines, this first post explains the foundation:</p><ul><li><strong>What is Microsoft Fabric?</strong></li><li><strong>What is OneLake?</strong></li><li><strong>Why a watermark strategy?</strong></li><li><strong>What is a medallion architecture?</strong></li><li><strong>What are we going to build in the series?</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*FQrKbIRYiHjddlIV7eQNLw.png" /><figcaption>Source: Microsoft Learn — Implement Medallion Lakehouse Architecture in Fabric</figcaption></figure><p><strong>What is Microsoft Fabric?</strong></p><p>Microsoft Fabric is an end-to-end analytics platform that brings together data engineering, data integration, data warehousing, real-time analytics, data science, and business intelligence experiences into one SaaS platform. Microsoft describes Fabric as a unified analytics platform built around shared experiences and OneLake as the common storage layer.</p><p>One important design point in Fabric is that all Fabric workloads operate over <strong>OneLake</strong>, which Microsoft describes as a unified logical data lake built on Azure Data Lake Storage. OneLake enables shared access to data across workloads without requiring unnecessary movement or duplication.</p><p><strong>What is OneLake and why does it matter?</strong></p><p>OneLake is Microsoft Fabric’s single, unified, logical data lake for the whole organization. Microsoft describes it as coming automatically with every Fabric tenant and being designed as the single place for all analytics data.</p><p>This is important because a Fabric-first architecture should normally use OneLake as the central storage layer unless there is a clear reason to keep data outside Fabric. In this series, we will be extensively using the one lake in our process.</p><p><strong>What is a Lakehouse in Microsoft Fabric?</strong></p><p>Microsoft describes a Fabric Lakehouse as combining the scalability of a data lake with the querying capabilities of a data warehouse. We can store structured and unstructured data in one location.</p><p>In this architecture, the Lakehouse will be used for:</p><ul><li><strong>raw landing files</strong></li><li><strong>bronze Delta tables</strong></li><li><strong>silver Delta tables</strong></li><li><strong>metadata/control tables</strong></li></ul><p>Microsoft states that Delta Lake is the default table format in Fabric Lakehouse and provides reliable, high-performance storage and processing. This is important because our bronze and silver tables will be Delta tables, and the<strong> watermark/control </strong>table will also live as a Lakehouse table.</p><p><strong>What is medallion architecture?</strong></p><p>We don’t just dump data and hope for the best. We use the <strong>Medallion Architecture</strong>, a design pattern that increases data quality as it flows through the system:</p><ul><li><strong>Bronze (Raw):</strong> The “as-is” source data.</li><li><strong>Silver (Enriched):</strong> Cleaned, filtered, and joined. The “Truth.”</li><li><strong>Gold (Curated):</strong> Business-level aggregates, ready for the CEO’s dashboard.</li></ul><p>Each layer represents a different level of data quality, with higher layers representing more refined and more business-ready data</p><p><strong>Why use a watermark strategy?</strong></p><p>A watermark strategy is used for incremental loading.</p><p>Instead of copying the full source table every time, the pipeline stores the last successfully processed value from a selected column, such as ModifiedDate. On the next run, the pipeline only copies rows newer than the previous watermark.</p><p>Microsoft Fabric Data Factory has documentation for incremental copy using watermark columns. The documentation explains that incremental copy tracks new or changed data using supported watermark column types and can reset incremental copy back to a full copy when needed.</p><p>A simple example.</p><pre>  Source table: SalesLT.Customer<br>  Watermark column: ModifiedDate<br>  Last watermark value: 2024-01-01 00:00:00<br>  <br>  Next run:<br>  Copy rows where ModifiedDate &gt; 2024-01-01 00:00:00</pre><p>The purpose is to avoid unnecessary full reloads when only a portion of the data has changed.</p><p><strong>The Architecture Map</strong></p><p>Our flow will look like this</p><pre>  Azure SQL Database<br>          ↓<br>  Fabric Data Pipeline<br>          ↓<br>  Watermark control table in Fabric Lakehouse<br>          ↓<br>  Copy selected tables<br>          ↓<br>  OneLake / Lakehouse Files raw landing area<br>          ↓<br>  Notebook creates Bronze Delta tables<br>          ↓<br>  Notebook transforms Bronze to Silver and silver to gold<br>          ↓<br>  Gold layer in Fabric Warehouse<br>          ↓<br>  Semantic model / Fabric Data Agent</pre><p>This architecture is based on the documented Fabric concepts:</p><pre>  OneLake as unified storage<br>  Lakehouse with Delta tables<br>  Medallion architecture with Bronze/Silver/Gold layers<br>  Watermark-based incremental copy<br>  Lakehouse SQL endpoint as read-only query surface<br>  Warehouse as scalable analytical serving layer<br>  Data Agent over curated data sources</pre><h3>What we will build in this series</h3><p>This foundation post is only the introduction. The implementation will be built in phases.</p><h3>Phase 1: Create the watermark control table</h3><p>We will create a metadata schema in the Fabric Lakehouse and create a control table to store source table configuration and watermark values.</p><h3>Phase 2: Build the Fabric pipeline</h3><p>We will build a pipeline using Lookup, ForEach, and Copy activity.</p><h3>Phase 3: Land Azure SQL data into OneLake</h3><p>We will copy selected tables from Azure SQL into Lakehouse Files raw landing folders.</p><h3>Phase 4: Create Bronze Delta tables</h3><p>We will use a Fabric notebook to read raw landed files and create bronze Delta tables.</p><h3>Phase 5: Transform Bronze to Silver</h3><p>We will clean, standardize, and prepare the data for analytical use.</p><h3>Phase 6: Create the Gold layer</h3><p>We will create curated fact and dimension tables, likely in Fabric Warehouse.</p><h3>Phase 7: Add semantic model and Data Agent</h3><p>We will expose the curated gold layer through a semantic model and/or Fabric Data Agent.</p><h3>Phase 8: Production considerations</h3><p>We will discuss private endpoints, authentication, least privilege, monitoring, logging, retry handling, and watermark updates.</p><h3>Final thoughts</h3><p>The goal of this series is not just to build a demo pipeline.</p><p>The goal is to understand how a Fabric lakehouse architecture can be designed using documented platform capabilities:</p><p>In the next post, we will start the implementation by creating the watermark control table inside the Fabric Lakehouse.</p><p>This table will become the foundation for the ingestion pipeline.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac40224cc236" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>