<?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 Adityasingh on Medium]]></title>
        <description><![CDATA[Stories by Adityasingh on Medium]]></description>
        <link>https://medium.com/@adityasingh456123?source=rss-ffffeb90108e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*gDWXQ2jnWOM-lFgk</url>
            <title>Stories by Adityasingh on Medium</title>
            <link>https://medium.com/@adityasingh456123?source=rss-ffffeb90108e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:33:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adityasingh456123/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[Bridging the DataHub OSS Gap: How We Made Assertions Actually Run]]></title>
            <link>https://medium.com/@adityasingh456123/bridging-the-oss-gap-how-we-made-datahub-assertions-actually-run-096f144c6dc3?source=rss-ffffeb90108e------2</link>
            <guid isPermaLink="false">https://medium.com/p/096f144c6dc3</guid>
            <category><![CDATA[datahub]]></category>
            <category><![CDATA[ontology]]></category>
            <category><![CDATA[data-quality-tool]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[data-quality]]></category>
            <dc:creator><![CDATA[Adityasingh]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 16:36:36 GMT</pubDate>
            <atom:updated>2026-09-24T16:51:30.479Z</atom:updated>
            <content:encoded><![CDATA[<p>How we built an in-house assertion engine to close the biggest feature gap between DataHub Open Source and DataHub Cloud.</p><h3>What is DataHub — and Why Do Teams Use It?</h3><p>What is DataHub — and Why Do Teams Use It?</p><p>Before diving into the problem we solved, a quick primer for anyone new to this space.</p><p>DataHub is an open-source data catalog and metadata platform think of it as a single source of truth for everything your organization knows about its data. It answers questions like:</p><ul><li><em>Where does this data come from? </em>Lineage tracking across pipelines and transformations</li><li><em>What does this table actually contain? </em>Schema documentation, column descriptions, and business glossary terms</li><li><em>Who owns this dataset?</em> Ownership and stewardship assignment</li><li><em>Is this data trustworthy? </em>Data quality assertions and validation history</li></ul><p>It’s used by data engineering, analytics, and platform teams to bring order to complex data ecosystems multiple databases, warehouses, pipelines, and BI tools by giving every data asset a documented, searchable, governed identity in one place.</p><p>DataHub is available in two flavors:</p><ul><li>DataHub OSS the open-source, self-hosted version. Free, flexible, and community-maintained.</li><li>DataHub Cloud (Acryl Data) the managed enterprise SaaS product, built on top of OSS with additional features, managed infrastructure, and support.</li></ul><p>This blog is about something we hit when running DataHub OSS in production and what we built to fix it</p><h3>The Problem Nobody Talks About</h3><p>If you’ve deployed DataHub Open Source, you know the honeymoon phase. You connect your databases, lineage starts flowing in, teams start tagging datasets, and the catalog fills up beautifully.</p><p>Then someone asks: <em>“Is our data actually healthy?”</em></p><p>You open the Validations tab in DataHub. And it’s… empty.</p><p>Here’s the thing nobody tells you upfront: DataHub OSS ships with the plumbing for data quality assertions the UI, the data model, the schemas but zero execution engine. Nothing actually runs checks against your database.</p><p>In DataHub Cloud, that’s the flagship enterprise feature. You define rules, set a schedule, and the platform automatically tests your data and gives you live pass/fail dashboards. It’s polished, automated, and out of the box.</p><p>In DataHub OSS, you’re on your own.</p><p>We decided that wasn’t good enough, so we built our own.</p><p><strong>We built a small service that finds assertions in DataHub, runs them with Great Expectations, and posts the results back so the UI shows pass/fail.</strong></p><h3>Before Assertions: Understanding Your Data First</h3><p>You can’t write meaningful data quality rules without first understanding what your data <em>means</em>.</p><p>Most teams treat data quality as a mechanical checklist — <em>“is this column null? are there enough rows?”</em> — and while those checks matter, they’re disconnected from business reality.</p><p>Before writing a single rule, we established an Ontology Layer inside DataHub itself. Think of it as a vocabulary for your data:</p><ul><li>Domains told us what business function a dataset belonged to Payments, Identity, Marketing.</li><li>Business Glossary Terms told us what individual columns represented-was a number a <em>gross invoice amount</em> or a <em>discount percentage</em>?</li><li>Tags flagged operational sensitivity production tier, PII, audit-critical.</li></ul><p>This context became the backbone of everything. A column tagged Financial.GrossAmount should always be non-negative. A dataset in the Payments domain should never go stale. A table with an email column should always validate its format.</p><p>The ontology doesn’t just describe data it tells you what “good” looks like.</p><h3>The Architecture: Five Stages, One Goal</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WYfftexUe_MB2BFyq0qwMA.png" /></figure><h3>Stage 1: Discovery — No Config Files Required</h3><p>Instead of maintaining separate YAML files or Airflow DAGs that point to databases, our engine asks DataHub directly:</p><blockquote>“Which datasets have assertions attached? And how do I connect to them?”</blockquote><p>DataHub already holds this information. Ingestion sources contain the hostnames, ports, and credentials for every connected database. We read those automatically-so when a database is already in the catalog, we can connect to it without any additional setup.</p><p>This is zero-touch credential discovery. One less thing to maintain.</p><h3>Stage 2: Routing — The NoSQL Problem</h3><p>Most data teams work across multiple databases. We had standard relational engines MySQL, SQL Server, PostgreSQL but also NoSQL stores that speak their own query languages.</p><p>Relational databases are straightforward. NoSQL is not.</p><p>The challenge is that Great Expectations — and most testing frameworks like it were built around the assumption that data is structured and SQL-queryable. NoSQL databases don’t speak SQL. They have their own query interfaces, their own document formats, and their own idea of what a “schema” looks like. The usual approach requires writing custom connectors and bespoke test code for each one.</p><p>Our solution: we put a SQL federation layer <strong>Trino </strong>in front of any non-SQL data source. Trino translates standard SQL into whatever query language the underlying store speaks, and exposes the result as a regular table. This meant our assertion engine could treat every data source the exact same way — no special cases, same code path.</p><p>One engine, every database.</p><h3>Stage 3: Translation — Speaking DataHub’s Language</h3><p>DataHub stores assertion definitions in its own internal format — a LinkedIn-developed schema called Pegasus. It’s precise and structured, but not what a testing framework like Great Expectations speaks.</p><p>We wrote a Rule Translator that bridges the two:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A_ofiloVSe7HB0ZntdXUzg.png" /></figure><p>The translator reads the assertion definitions from DataHub and hands off standardized, executable tests to the next stage.</p><h3>Stage 4: Execution — Where the Checks Actually Run</h3><p>Great Expectations is the industry-standard Python library for data quality testing. It runs expectations against a live database connection and tells you what passed, what failed, and by how much.</p><p>Our executor:</p><ol><li>Opens a direct connection to the target database</li><li>Handles schema reflection — because table names aren’t always cased consistently between what’s in DataHub and what’s in the actual database</li><li>Runs the full Great Expectations suite</li><li>Collects the verdict: passed, failed, or errored</li></ol><p>One niche challenge worth mentioning: enterprise databases are messy. A table registered in DataHub under one casing might physically exist under a different casing in the actual database, depending on the OS and collation settings. The executor automatically reconciles this by inspecting the database catalog before running any test.</p><h3>Stage 5: Emission — Closing the Loop Back to DataHub</h3><p>This is where the magic becomes visible.</p><p>Once the tests run, we take the verdict and package it as a DataHub-native AssertionRunEvent the exact same format DataHub Cloud uses. We push this directly into the DataHub metadata API.</p><p>The result:</p><blockquote><em>The Validations tab in DataHub lights up. Green badges. Pass rates. Historical run charts. All the enterprise-tier UI features populated by our open-source engine.</em></blockquote><p>No plugin. No external dashboard. No separate reporting tool. The results live inside DataHub where engineers already live.</p><h3>Final Thought</h3><p>DataHub Open Source is an excellent metadata catalog. The lineage is solid, the UI is clean, and the schema is well-designed. But there’s a real gap between what it provides and what teams actually need to trust their data.</p><p>We built this engine not because DataHub Cloud is wrong, it’s a great product but because we had a self-hosted deployment and needed the same guarantees.</p><p>The stack we landed on <strong>DataHub OSS + Great Expectations + Trino + a small Python service</strong> gives us automated data quality monitoring and a live observability layer inside the catalog.</p><p>And it costs nothing in licensing.</p><p>If you’re running DataHub OSS and wondering why the Validations tab is empty, this is the architecture that fills it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=096f144c6dc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>