<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Beau Greiner</title>
    <description>The latest articles on DEV Community by Beau Greiner (@beau_greiner_a6e365fa906a).</description>
    <link>https://dev.to/beau_greiner_a6e365fa906a</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4285349%2F79125bfb-9d6f-464e-8ed2-b2e52336275b.png</url>
      <title>DEV Community: Beau Greiner</title>
      <link>https://dev.to/beau_greiner_a6e365fa906a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/beau_greiner_a6e365fa906a"/>
    <language>en</language>
    <item>
      <title>When source values change: data drift in Microsoft Fabric pipelines</title>
      <dc:creator>Beau Greiner</dc:creator>
      <pubDate>Sat, 05 Dec 2026 19:25:54 +0000</pubDate>
      <link>https://dev.to/beau_greiner_a6e365fa906a/when-source-values-change-data-drift-in-microsoft-fabric-pipelines-513g</link>
      <guid>https://dev.to/beau_greiner_a6e365fa906a/when-source-values-change-data-drift-in-microsoft-fabric-pipelines-513g</guid>
      <description>&lt;p&gt;Your Microsoft Fabric pipeline has run green for six months. Nobody deployed a change. Then finance asks why North America no longer adds up.&lt;/p&gt;

&lt;p&gt;Upstream, a source team made a reasonable update. &lt;code&gt;"United States"&lt;/code&gt; split into &lt;code&gt;"Western US"&lt;/code&gt; and &lt;code&gt;"Eastern US"&lt;/code&gt;. They did not alert downstream teams, because nothing broke on their side.&lt;/p&gt;

&lt;p&gt;Nothing broke on your side either. Every activity reported succeeded. That is how value-level data drift hides inside a green pipeline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Schema drift vs. data drift in Fabric
&lt;/h2&gt;

&lt;p&gt;Upstream changes fall into two very different buckets.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;What your pipeline usually does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Schema drift&lt;/td&gt;
&lt;td&gt;A column is added, dropped, renamed, or retyped.&lt;/td&gt;
&lt;td&gt;Often fails loudly in monitoring, unless drift rules absorb it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data drift (value drift)&lt;/td&gt;
&lt;td&gt;Same column, new values: a split region, a new product code, a reused status.&lt;/td&gt;
&lt;td&gt;Succeeds silently. Unmapped rows drop out or get relabeled.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most platform guardrails focus on schema drift. A broken column mapping shows up in &lt;a href="https://learn.microsoft.com/en-us/fabric/data-factory/monitoring-hub-pipeline-runs" rel="noopener noreferrer"&gt;the Fabric monitoring hub&lt;/a&gt;. Azure Data Factory mapping data flows offer an &lt;a href="https://learn.microsoft.com/en-us/azure/data-factory/concepts-data-flow-schema-drift" rel="noopener noreferrer"&gt;Allow schema drift setting&lt;/a&gt; for columns that appear or disappear. In Fabric, &lt;a href="https://learn.microsoft.com/en-us/fabric/data-factory/how-to-handle-schema-drift" rel="noopener noreferrer"&gt;Dataflow Gen2 documents how to handle schema drift&lt;/a&gt; when columns are added, removed, or retyped. Even structural changes can slip past quietly when implicit casts or loose mappings hide them, as we covered in our &lt;a href="https://generalvalidation.com/blog/silent-adf-failures-field-guide/" rel="noopener noreferrer"&gt;field guide to silent ADF failures&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;None of those schema controls catch new values inside an existing column. Whether your transformation runs in a Warehouse query, a Spark notebook, or Dataflow Gen2, &lt;code&gt;"Western US"&lt;/code&gt; is still a valid string. The pipeline accepts it and moves on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three places new values vanish
&lt;/h2&gt;

&lt;p&gt;In our experience, unmapped source values disappear in one of three places. All three finish green.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. An inner join to a mapping table
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;order_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;reporting_region&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;sales&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;
&lt;span class="k"&gt;INNER&lt;/span&gt; &lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;region_map&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;
  &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;region&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;source_region&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The mapping table knows &lt;code&gt;"United States"&lt;/code&gt;. It has never heard of &lt;code&gt;"Western US"&lt;/code&gt;. Because an inner join &lt;a href="https://learn.microsoft.com/en-us/sql/t-sql/queries/from-transact-sql" rel="noopener noreferrer"&gt;returns only rows that match on both sides&lt;/a&gt;, every &lt;code&gt;"Western US"&lt;/code&gt; and &lt;code&gt;"Eastern US"&lt;/code&gt; order disappears. The row count drops. No error fires.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. A left join that turns unmatched rows into NULL
&lt;/h3&gt;

&lt;p&gt;Switch to a left join and the orders survive that step. A left join &lt;a href="https://learn.microsoft.com/en-us/sql/t-sql/queries/from-transact-sql" rel="noopener noreferrer"&gt;keeps every row from the left table and fills unmatched columns with NULL&lt;/a&gt;. The order stays in the dataset, while &lt;code&gt;reporting_region&lt;/code&gt; becomes &lt;code&gt;NULL&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Then a downstream filter checks &lt;code&gt;reporting_region IS NOT NULL&lt;/code&gt;, or a Power BI report buckets &lt;code&gt;NULL&lt;/code&gt; into a blank line nobody monitors. Same lost revenue, one hop later.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. A CASE expression with a catch-all
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CASE&lt;/span&gt;
  &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="n"&gt;region&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'United States'&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="s1"&gt;'North America'&lt;/span&gt;
  &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="n"&gt;region&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Canada'&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="s1"&gt;'North America'&lt;/span&gt;
  &lt;span class="k"&gt;ELSE&lt;/span&gt; &lt;span class="s1"&gt;'Other'&lt;/span&gt;
&lt;span class="k"&gt;END&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;reporting_region&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When no &lt;code&gt;WHEN&lt;/code&gt; branch matches, &lt;a href="https://learn.microsoft.com/en-us/sql/t-sql/language-elements/case-transact-sql" rel="noopener noreferrer"&gt;CASE returns the ELSE value&lt;/a&gt;. Every &lt;code&gt;"Western US"&lt;/code&gt; and &lt;code&gt;"Eastern US"&lt;/code&gt; order is now labeled &lt;code&gt;"Other"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This is the hardest failure to catch. Row counts match. The grand total still ties out. North America quietly shrank while &lt;code&gt;"Other"&lt;/code&gt; grew.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five-step triage checklist
&lt;/h2&gt;

&lt;p&gt;When a stakeholder flags a missing total, work through these five steps in order. The SQL below uses synthetic tables (&lt;code&gt;sales_source&lt;/code&gt;, &lt;code&gt;region_map&lt;/code&gt;, and &lt;code&gt;sales_by_region&lt;/code&gt;) and runs in a Fabric Warehouse or a Lakehouse SQL analytics endpoint.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Compare counts and totals, source against target
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) AS orders, SUM(amount) AS amount
FROM sales_source
WHERE order_date &amp;gt;= '2026-11-01';
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the same count and total on &lt;code&gt;sales_by_region&lt;/code&gt; for the exact same date window.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The target is short:&lt;/strong&gt; suspect an inner join or a downstream &lt;code&gt;IS NOT NULL&lt;/code&gt; filter. Rows were dropped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grand totals match, but one group is short:&lt;/strong&gt; suspect a &lt;code&gt;CASE ... ELSE&lt;/code&gt; catch-all. Rows were relabeled into &lt;code&gt;"Other"&lt;/code&gt; or an unknown bucket.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. List the unmapped source values
&lt;/h3&gt;

&lt;p&gt;If your pipeline maps values through a reference table, diff the distinct values directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="k"&gt;DISTINCT&lt;/span&gt; &lt;span class="n"&gt;region&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;sales_source&lt;/span&gt;
&lt;span class="k"&gt;EXCEPT&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="k"&gt;DISTINCT&lt;/span&gt; &lt;span class="n"&gt;source_region&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;region_map&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;EXCEPT&lt;/code&gt; &lt;a href="https://learn.microsoft.com/en-us/sql/t-sql/language-elements/set-operators-except-and-intersect-transact-sql" rel="noopener noreferrer"&gt;returns the distinct rows from the first query that are not in the second&lt;/a&gt;. Here it immediately returns &lt;code&gt;"Western US"&lt;/code&gt; and &lt;code&gt;"Eastern US"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If the mapping lives in a hardcoded &lt;code&gt;CASE&lt;/code&gt; statement instead of a table, check the source rows whose target &lt;code&gt;reporting_region&lt;/code&gt; landed in &lt;code&gt;'Other'&lt;/code&gt; (or compare &lt;code&gt;SELECT DISTINCT region FROM sales_source&lt;/code&gt; against the expected &lt;code&gt;WHEN&lt;/code&gt; list). Either way, one query usually hands you the root cause.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Isolate the hop that drops or relabels them
&lt;/h3&gt;

&lt;p&gt;Walk the medallion path from source to Bronze, Silver, and Gold. Re-run the count and total from step 1 at each table boundary. The first handoff where source and target stop agreeing is the step that owns the defect. In our experience it is almost always a lookup join, a filter on a nullable mapped column, or a mapping expression.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Update the mapping, then backfill affected loads
&lt;/h3&gt;

&lt;p&gt;Add &lt;code&gt;"Western US"&lt;/code&gt; and &lt;code&gt;"Eastern US"&lt;/code&gt; to &lt;code&gt;region_map&lt;/code&gt; (or the &lt;code&gt;CASE&lt;/code&gt; logic), then reprocess every batch since the upstream change began. Fixing the mapping for tonight’s incremental load will not restore rows that dropped out last week.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Turn steps 1 and 2 into standing checks
&lt;/h3&gt;

&lt;p&gt;Do not leave these queries in an incident notebook. Keep row counts, business totals, and set-membership checks running after every load so the next unannounced value change fails fast. We laid out the full baseline in &lt;a href="https://generalvalidation.com/blog/twelve-checks-that-catch-most-data-defects/" rel="noopener noreferrer"&gt;the twelve checks that catch most data defects&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why contracts and anomaly alerts are not enough
&lt;/h2&gt;

&lt;p&gt;Data contracts, where upstream teams agree to announce value changes before shipping, are worth having. Still, a contract is a human process. The day a source team forgets, the pipeline still runs green, as we explored in &lt;a href="https://generalvalidation.com/blog/silent-pipeline-failures/" rel="noopener noreferrer"&gt;when your pipeline runs green but the data is wrong&lt;/a&gt;. Detection has to run whether anyone remembered or not.&lt;/p&gt;

&lt;p&gt;History-based anomaly monitors help, too. Watching a table against its own prior runs may eventually notice that &lt;code&gt;"North America"&lt;/code&gt; dropped or &lt;code&gt;"Other"&lt;/code&gt; spiked. What a single-table monitor cannot tell you is which exact source values never made it across, because it never compares the target with the source. Source-to-target reconciliation does.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where General Validation fits
&lt;/h2&gt;

&lt;p&gt;Full disclosure: I'm one of the founders at General Validation. It reconciles two supported tables in a Table Pair after every load, inside your Microsoft Fabric workspace. Pair your source table with your target table using &lt;code&gt;COUNT_ROWS&lt;/code&gt; and &lt;code&gt;SUM&lt;/code&gt; Tests to catch dropped rows or missing totals, and pair your source table with its mapping table using a &lt;code&gt;SET_A_IN_B&lt;/code&gt; Test to verify that every source value exists in the mapping table. When an upstream value change breaks either check, the next Run fails the affected Test, and &lt;code&gt;SET_A_IN_B&lt;/code&gt; records the unmapped values in your Fabric workspace before finance spots the gap. &lt;a href="https://generalvalidation.com/source-to-target-validation-microsoft-fabric/" rel="noopener noreferrer"&gt;Source-to-target reconciliation in Microsoft Fabric&lt;/a&gt; shows how it works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/sql/t-sql/queries/from-transact-sql" rel="noopener noreferrer"&gt;FROM clause plus JOIN, Transact-SQL, Microsoft Learn&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/sql/t-sql/language-elements/case-transact-sql" rel="noopener noreferrer"&gt;CASE, Transact-SQL, Microsoft Learn&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/sql/t-sql/language-elements/set-operators-except-and-intersect-transact-sql" rel="noopener noreferrer"&gt;Set operators EXCEPT and INTERSECT, Transact-SQL, Microsoft Learn&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/azure/data-factory/concepts-data-flow-schema-drift" rel="noopener noreferrer"&gt;Schema drift in mapping data flow, Azure Data Factory, Microsoft Learn&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/fabric/data-factory/how-to-handle-schema-drift" rel="noopener noreferrer"&gt;Handle schema drift in Dataflow Gen2, Microsoft Learn&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/fabric/data-factory/monitoring-hub-pipeline-runs" rel="noopener noreferrer"&gt;Monitor pipeline runs in the monitoring hub, Microsoft Fabric, Microsoft Learn&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://generalvalidation.com/blog/data-drift-vs-schema-drift-microsoft-fabric/" rel="noopener noreferrer"&gt;General Validation blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>sql</category>
      <category>microsoftfabric</category>
      <category>dataengineering</category>
      <category>azure</category>
    </item>
  </channel>
</rss>
