<?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 Nikhil Mohod on Medium]]></title>
        <description><![CDATA[Stories by Nikhil Mohod on Medium]]></description>
        <link>https://medium.com/@nikhilmohod21?source=rss-2e8ed2e345b8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ez_nlVxUyTKHWTrSrXwaiA.jpeg</url>
            <title>Stories by Nikhil Mohod on Medium</title>
            <link>https://medium.com/@nikhilmohod21?source=rss-2e8ed2e345b8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:36:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nikhilmohod21/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[How I built a Genie Ontology on Databricks, one layer at a time]]></title>
            <link>https://medium.com/@nikhilmohod21/how-i-built-a-genie-ontology-on-databricks-one-layer-at-a-time-2bb18c076dce?source=rss-2e8ed2e345b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bb18c076dce</guid>
            <category><![CDATA[ontology]]></category>
            <category><![CDATA[genie-ontology]]></category>
            <category><![CDATA[azure-databricks]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[databricks-ontology]]></category>
            <dc:creator><![CDATA[Nikhil Mohod]]></dc:creator>
            <pubDate>Tue, 01 Dec 2026 16:46:42 GMT</pubDate>
            <atom:updated>2026-12-01T16:46:42.043Z</atom:updated>
            <content:encoded><![CDATA[<p>Genie Ontology went GA on 11 November 2026, and Unity Catalog domains and Pages went GA with it. It learns from what’s already in your workspace: metric views, dashboards, SQL queries, notebooks and Genie agents. Each piece of context gets an authority score based on where it came from, how often it’s used and how fresh it is. When two sources disagree, whatever you’ve modeled and certified yourself beats what Genie picked up on its own.</p><p>In other words, Genie is only as good as the catalog underneath it. I wanted to show a client what that looks like in practice, so I built a POV on one domain, People Management, and took it through the six foundation layers Databricks published in September.</p><h3>Same domain, built twice</h3><p>I kept two copies of the domain in one catalog so we could compare them side by side. pre_silver and pre_gold hold the data the way it usually arrives, with whatever descriptions and keys came along by chance. post_silver, post_semantic and post_gold hold the same data after the ontology work. Put next to each other, the difference is easy to see.</p><h3>The six layers, as I built them</h3><p>I started at the bottom, with the data model. Nothing fancy: silver for the cleaned HR data, gold for reporting, and a separate semantic schema that holds only the metric views.</p><p>Then metadata. Every table and column got a description written the way someone in HR would explain it, not the way the source system named it, with governed tags on top.</p><p>Layer 2 is business meaning, and it’s where most of the ontology lives. I declared primary and foreign keys on the silver tables, so Genie knows how they join instead of guessing. Then I built two metric views, so each KPI has one definition and every answer uses the same formula.</p><p>The domain came next. In Unity Catalog every domain is built on a governed tag, so I created a People Management domain and tagged the objects into it. The business now has one place to find its data and one place for its definitions.</p><p>Those definitions live in Pages. Each Page covers one term or KPI: what it means, who owns it, its synonyms, and the metric view or table that holds the number. A Page sits inside its domain and takes its access from there. When a question matches a Page, Genie uses that definition ahead of anything it learned on its own, and cites the Page so people can check.</p><p>Layer 3 is trust. I certified three assets, including both metric views. Certified assets carry more weight when Genie has to choose between sources, and curators can certify Pages the same way.</p><p>Access is layer 4. Unity Catalog permissions decide who sees what, and an attribute-based mask policy covers the eight columns that hold personal data.</p><p>The last layer is proof. I added benchmark questions to the Genie agent, so every change gets tested against the same questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xwS8LRUFpWLYZC65cS-yrg.png" /></figure><h3>Good data habits are most of the work</h3><p>None of this needed a new discipline. It’s what good data teams already practise: a clear model, tables and columns described in business words, declared keys, consistent tags, one definition per KPI and an owner who signs it off. Genie Ontology turns each of those into context it can use. Skip them and Genie has to work things out from whatever it finds. Do them properly and it has something authoritative to stand on.</p><p>Databricks’ own numbers show what that’s worth. In the benchmark published with the GA, run on a simulated energy-supplier workspace, Genie passed 91% of tasks, 1.6 times the rate of the stronger of the two frontier agents it was compared with.</p><h3>Tips if you build your own</h3><ul><li>Build the domain on a governed tag, new or one you already use, and apply it at catalog or schema level. Tables inherit it, so you don’t tag them one by one.</li><li>Anyone with access to a domain can draft a Page, but only a Page manager or curator can publish it. Until then, the draft only shows up in its owner’s Genie conversations.</li><li>In the information schema, a metric view looks like a plain view. The extended table details and the lineage system table show what it really is.</li><li>CHECK constraints live in the table properties, so SHOW TBLPROPERTIES is where to find them.</li><li>Catalog Explorer can draft descriptions in seconds. Have the table owner read and approve each one, because Genie treats that text as context.</li><li>A Genie agent usually reads more than one schema. Review everything it reads, not just your best schema.</li></ul><p>If you’re about to switch Genie Ontology on, pick one domain and take it all the way through the six layers before you scale out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bb18c076dce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Hybrid Lakehouse: Strategic Use of Apache Hudi and Delta Lake in Databricks]]></title>
            <link>https://medium.com/@nikhilmohod21/building-a-hybrid-lakehouse-strategic-use-of-apache-hudi-and-delta-lake-in-databricks-059f6a812a4a?source=rss-2e8ed2e345b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/059f6a812a4a</guid>
            <dc:creator><![CDATA[Nikhil Mohod]]></dc:creator>
            <pubDate>Wed, 11 Mar 2026 13:31:56 GMT</pubDate>
            <atom:updated>2026-03-11T13:31:56.097Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KWDl_ewP3teyUGBZLDi6CA.png" /></figure><p>Apache Hudi and Delta Lake are built for different workloads. Hudi is optimised for high-frequency writes; Delta Lake is built for fast, reliable reads. Using one format across the entire data platform forces an unnecessary trade-off high ingestion costs if you go Delta only, or weaker analytical performance if you go Hudi only. This blog covers how to use both formats where each performs best, and what the cost and performance gains look like in practice.</p><h3>Understanding the Lakehouse Foundation</h3><p>Databricks built its Lakehouse on Apache Spark, Delta Lake, and MLflow open-source components sitting on top of cheap object storage that answer queries at warehouse speed. The Medallion Architecture splits the work across three layers. Bronze holds raw records exactly as they arrived. Silver cleans and restructures them. Gold is what analysts and ML pipelines actually query.</p><h3>The Complementary Strengths of Hudi and Delta Lake</h3><p>Hudi was built for write-heavy ingestion. Delta Lake was built for read-heavy analytics. Forcing one format across both use cases costs more and performs worse than using each where it fits.</p><h3>Apache Hudi : Key Advantages</h3><p>• <strong>Write Amplification Reduction: </strong>Merge-on-Read writes only the changed rows to small log files. Full file rewrites happen during compaction, not on every update CDC pipelines on large tables see up to 60% lower compute spend as a result.</p><p>• <strong>High-Frequency Mutations: </strong>Hudi’s record-level index looks up the exact file holding each row before running the upsert. No full table scans, no wasted I/O. When a pipeline pushes millions of changes per run, that lookup is what keeps job times manageable.</p><p>• <strong>Background Compaction: </strong>Compaction runs as a separate process on its own schedule. The ingestion job does not wait for file reorganisation before the next batch starts.</p><p>• <strong>Streaming-Optimised: </strong>CDC workloads inserts, updates, and deletes in a continuous feed are the primary design target. Hudi handles them without the write overhead of rewriting full Parquet files on each commit.</p><h3>Delta Lake : Key Advantages</h3><p>• <strong>Liquid Clustering: </strong>File layout reorganises automatically as query patterns shift. No partition strategy to define at table creation, no manual intervention when access patterns change.</p><p>• <strong>Photon Acceleration: </strong>Photon is a vectorised C++ execution engine inside Databricks Runtime. SQL queries run up to 4x faster than on standard Spark no query or schema changes needed.</p><p>• <strong>Predictive Optimisation: </strong>OPTIMIZE and VACUUM are scheduled against idle cluster windows automatically. The maintenance backlog does not pile up between manual runs.</p><p>• <strong>Enterprise Reliability: </strong>ACID transactions mean a failed write never leaves the table in a broken state. Time-travel lets teams query any prior snapshot both matter in regulated environments where data correctness is auditable.</p><h3>Delta UniForm: The Bridge Between Formats</h3><p>UniForm writes Iceberg and Hudi metadata alongside Delta metadata all pointing at the same Parquet files on storage. One physical dataset, three sets of format metadata. Nothing is duplicated.</p><p>Metadata generation is asynchronous, so write latency is unaffected. A Spark job writing Delta, a Trino cluster reading Iceberg, and a Hudi client can all hit the same table concurrently no format conversion steps, no extra Databricks compute charges.</p><h3>Unity Catalog: The Governance Foundation</h3><p>Running Hudi in Bronze and Delta in Gold means two format readers, multiple compute engines, and access policies that need to work across both. Unity Catalog handles that through one control plane:</p><p>• catalog.schema.table namespace works the same whether the underlying table is Hudi, Delta, or Iceberg no separate naming conventions per format.</p><p>• Column-level lineage is captured as data moves from Bronze ingestion through Silver transformation into Gold analytics and ML feature pipelines.</p><p>• The built-in classifier scans tables for PII and financial identifiers, tags what it finds, then enforces row- and column-level access at query time. No separate tagging job to schedule.</p><p>• One ANSI SQL access control model covers all three formats. Iceberg REST Catalog is supported out of the box for engines outside Databricks.</p><p>• Spark, Trino, Flink, and other engines hit Delta tables as Iceberg through the REST interface. That traffic bypasses Databricks compute entirely, so no runtime charge attaches to it.</p><h3>Strategic Format Selection Across Medallion Layers</h3><h3>Bronze Layer : Apache Hudi</h3><p>Raw ingestion from source systems typically carries a high ratio of updates to net-new rows exactly the workload Hudi was designed for. Log-based writes mean only changed rows hit storage on each ingestion cycle. Bronze tables stay current with upstream systems at up to 60% lower compute cost compared to Delta-only ingestion, and the full record history is kept for reprocessing or audit.</p><h3>Silver Layer : Delta Lake with UniForm</h3><p>After cleansing and validation, update frequency drops and read patterns become more predictable. Delta Lake fits that profile. Enabling UniForm means Hudi clients from Bronze can still read Silver tables during any transition window. Liquid Clustering picks up layout optimisation automatically as query patterns settle.</p><h3>Gold Layer : Pure Delta Lake</h3><p>Gold tables exist to be queried fast, repeatedly, by BI tools expecting consistent response times. Photon handles execution speed. Liquid Clustering keeps file layout current without manual partition work. Predictive Optimisation runs housekeeping in the background. Sub-second performance on large datasets, no ongoing engineering overhead.</p><h3>Delta Sharing: Governed Data Distribution</h3><p>Delta Sharing pushes live query access to external partners and internal teams without moving or copying data. The source table stays in one place. Recipients query it directly, subject to the row- and column-level permissions set in Unity Catalog. Data owners see exactly who queried what and when.</p><h3>Real-World Impact: Cost and Performance</h3><p>Numbers from live deployments running this architecture:</p><p>• <strong>Ingestion Cost: </strong>Teams migrating Bronze CDC workloads from Delta to Hudi consistently report 60% lower compute spend. Writing 20 GB of log files per cycle instead of rewriting 500 GB of Parquet is the mechanism behind that figure.</p><p>• <strong>Query Speed: </strong>Gold layer Delta tables with Liquid Clustering and Photon return executive dashboard queries in two to three seconds. The same queries on a conventional warehouse took 45 seconds before migration. That gap compounds across every scheduled report, every ad hoc request, every day.</p><p>• <strong>Storage Overhead: </strong>Without UniForm, teams in multi-format environments keep separate file copies per format. UniForm collapses that to one physical copy storage spend drops by up to 67% and all format readers stay compatible.</p><p>• <strong>Governance Consolidation: </strong>Unity Catalog covers access control, lineage, and data classification in one place. Teams that previously licensed separate catalogue and governance tooling have cut that line from the budget entirely.</p><h3>The Path Forward</h3><p>Hudi belongs in Bronze because write amplification is a real cost at CDC scale. Delta Lake belongs in Gold because Photon, Liquid Clustering, and Predictive Optimisation are built for analytical query loads. Unity Catalog ties both together under one access control model. Delta Sharing extends data access outward without creating copies.</p><p>The teams getting 60% off their ingestion bills and three-second dashboard queries are not using a single format everywhere they are using the right format at each layer. That is the architecture this blog describes, and the results are repeatable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=059f6a812a4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guide to the Databricks Solution Champion Panel: Essential Prep]]></title>
            <link>https://medium.com/@nikhilmohod21/guide-to-the-databricks-solution-champion-panel-essential-prep-ad2e88afa9a9?source=rss-2e8ed2e345b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad2e88afa9a9</guid>
            <dc:creator><![CDATA[Nikhil Mohod]]></dc:creator>
            <pubDate>Mon, 24 Nov 2025 07:14:20 GMT</pubDate>
            <atom:updated>2025-11-24T07:30:33.341Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently completed the Databricks Solution Architect Champion panel. This quick guide outlines the critical steps and focus areas. Use it to sharpen your preparation — it’s built on direct experience, not theory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rw1H7dDm033f-jN7VPmPCg.jpeg" /></figure><p>1. Presentation Structure: The Must-Haves</p><p>Keep your deck sharp. Focus on the substance.<br>&gt; Intro &amp; Experience: Your background. Keep it brief.<br>&gt; Databricks Journey: Your experience and growth using the platform..<br>&gt; Core Projects (3 Minimum): These are your proof points. For each, cover:</p><ul><li>The Problem (Business Pain Point)</li><li>The Architecture (Diagram this clearly)</li><li>The Challenges faced (Technical/Organizational)</li><li>The Impact (Quantified: Cost reduction, time savings, revenue uplift)</li></ul><p>&gt; Your Contributions:</p><p>List key outputs: Proofs-of-Concept (PoCs), formal accreditations, solution accelerators, blogs.</p><p>2. Time Management: Stick to the Clock:<br> 50 Minutes: Deliver the core presentation. Practice transitions and timing until it flows perfectly. Do not run over.<br> 10 Minutes: Q&amp;A and discussion. This is where they probe your technical depth and rationale.</p><p>3. Technical Depth: What to Emphasize</p><p>They want production-ready designs, not academic concepts.<br>&gt; Architecture Standard: Design your solutions using the Medallion Architecture (Bronze → Silver → Gold layers). This shows familiarity with the Lakehouse standard.<br>&gt; Governance Mandate: Unity Catalog is essential. Show how it’s central to your security and metadata strategy across all projects.<br>&gt; Platform Features Checklist: Demonstrate practical use of core platform components:</p><ul><li>Databricks SQL: Fast, scalable, cost-efficient analytics and BI directly on your lakehouse.</li><li>Lakehouse Pipelines (formerly Delta Live Tables, now part of Lakeflow): Simplified, reliable data pipeline automation and orchestration.</li><li>Lakehouse Streaming: Real-time data ingestion, processing, and analytics.</li><li>Data Engineering Pipelines: Efficient ETL/ELT workflows supporting reliable data transformations.</li><li>Unity Catalog: Centralized security, governance, and data access controls across your lakehouse.</li></ul><p>4. The Three Pillars of a Champion Solution</p><p>Your entire presentation must show competence across:</p><p>Key Pillars of a Champion Solution</p><p>i. Performance</p><ul><li>Focus Areas: Query Optimization, Cluster Sizing, Adaptive Query Execution (AQE), Predictive Query Execution (PQE), liquid clustering, dynamic cluster sizing, and efficient resource utilization</li><li>Why It Matters: Solutions must handle growth efficiently and run fast</li></ul><p>ii. Cost</p><ul><li>Focus Areas: Autoscaling, DBU reduction techniques, serverless SQL warehouses, Photon accelerated query processing for cost efficiency.</li><li>Why It Matters: Solutions must be economical, not just functional</li></ul><p>iii. Governance</p><ul><li>Focus Areas: Lineage, Compliance, Access Controls (RBAC/ABAC)</li><li>Why It Matters: Solutions must be secure, auditable, and traceable</li></ul><p>5. Champion Attributes: Beyond Technical Skill</p><p>The panel evaluates your influence, not just your coding ability.</p><ul><li>Thought Leadership: Publishing content, running internal workshops</li><li>Advocacy: Driving Databricks adoption and best practices internally</li><li>Impact: Real, measurable project results, PoCs, solution accelerators</li></ul><p><strong>Final Note</strong>: Every champion’s review is unique. Use this framework to organize your best, most impactful hands-on work. Your authentic project learnings and technical justifications are your strongest assets.</p><p><strong>Best of luck. Now, go prepare your material.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad2e88afa9a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Fully Automated KPI Dashboard with Databricks and Sigma: From Excel Chaos to Real-Time Insights]]></title>
            <link>https://medium.com/@nikhilmohod21/a-fully-automated-kpi-dashboard-with-databricks-and-sigma-from-excel-chaos-to-real-time-insights-92289fa97724?source=rss-2e8ed2e345b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/92289fa97724</guid>
            <dc:creator><![CDATA[Nikhil Mohod]]></dc:creator>
            <pubDate>Thu, 03 Jul 2025 12:35:17 GMT</pubDate>
            <atom:updated>2025-07-03T12:35:17.468Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s data-first world, organizations are under pressure to make faster, smarter decisions. Yet, many still rely on <strong>manual Excel spreadsheets</strong> for tracking KPIs and generating reports — leading to <strong>errors, delays, and data silos</strong>.</p><p>Modern tools like <strong>Databricks</strong> and <strong>Sigma Computing</strong> are transforming the analytics landscape:</p><ul><li><strong>Databricks</strong> is a unified platform for data engineering, real-time analytics, and AI/ML, built on Apache Spark and optimized for the cloud.</li><li><strong>Sigma</strong> is a cloud-native business intelligence tool with a spreadsheet-like interface that lets business users explore live data directly from the cloud warehouse — no extracts or code required.</li></ul><p>Together, they provide the foundation for real-time, scalable, and secure analytics — eliminating Excel chaos once and for all.</p><p><strong>The real challenge: Why Excel Is Holding Businesses Back</strong></p><p>Across industries, many teams still rely on Excel as the default tool for performance tracking. But as operations scale, this approach breaks down:</p><ul><li><strong>Regional teams</strong> maintain their own spreadsheets, leading to <strong>inconsistent data formats</strong> and <strong>duplicate efforts</strong>.</li><li>Consolidation into a central Excel file is <strong>manual, slow, and error-prone</strong>.</li><li>Decision-makers are left with <strong>outdated KPIs</strong> and limited visibility into real-time performance.</li></ul><p>The lack of automation and data governance makes it nearly impossible to scale, collaborate, or comply with enterprise data policies.</p><p><strong>The Solution: A Scalable, Real-Time Analytics Framework</strong></p><p>To overcome these limitations, businesses need to:</p><ol><li><strong>Automate data ingestion and transformation</strong> using cloud-scale platforms like Databricks.</li><li><strong>Visualize live KPIs</strong> in real time through Sigma’s spreadsheet-like interface.</li><li><strong>Enable bi-directional workflows</strong>, where business users can not only view but also interact with and update the data.</li><li><strong>Apply enterprise-grade governance</strong> with centralized security and access control mechanisms.</li></ol><p>This modern approach eliminates spreadsheet silos and brings consistency, speed, and collaboration to data-driven decision-making.</p><p><strong>Real-World Example: How We Helped a Client Replace Excel Chaos with a Modern Data Platform</strong></p><p>One of our clients, having multi-regional business, was stuck with excel chaos issues. Each region maintained separate Excel files, which were manually merged into a master spreadsheet for leadership reporting. The process was <strong>time-consuming</strong>, <strong>error-prone</strong>, and <strong>impossible to scale</strong>.</p><p>We implemented a fully automated KPI dashboard using <strong>Databricks + Sigma</strong>, replacing the entire manual process:</p><ul><li><strong>Databricks</strong> ingested and processed raw data using the <strong>Medallion architecture</strong> (Bronze, Silver, Gold layers) and stored it in <strong>Delta Tables</strong> for high-performance querying.</li><li><strong>Sigma</strong> provided <strong>live dashboards</strong> directly on top of Delta Tables, with familiar UI for business users and no need for manual refreshes.</li><li><strong>Bi-Directional Data Synchronization</strong></li><li>One of the most powerful aspects of our solution was implementing <strong>bi-directional data flow</strong> between Databricks and Sigma, enabling a dynamic and interactive analytics experience:</li><li><strong>From Databricks to Sigma</strong>: Clean, transformed data — processed and curated through the Medallion architecture — was made available in Sigma for real-time visualization. This allowed users to explore always-fresh data without manual exports or refresh cycles.</li><li><strong>From Sigma to Databricks</strong>: Using <strong>Sigma’s write-back capabilities</strong>, we enabled users to directly update specific values (e.g., targets, comments, forecast adjustments) within the dashboard. These changes were securely written back to Databricks, where they could be incorporated into the next data processing cycle.</li><li>This <strong>bi-directional sync</strong> created a closed-loop system, where both business and technical users could <strong>interact with and influence the data pipeline in real time</strong> — driving agility, collaboration, and operational efficiency.</li><li><strong>Security was a top priority throughout the solution design.</strong> We implemented a robust data governance framework to ensure that data remained secure, compliant, and well-managed. Key elements included:</li></ul><p>o <strong>Unity Catalog for centralized governance</strong>: We used Databricks Unity Catalog to manage data access, lineage, and classification across all tables and workspaces. This enabled fine-grained access control and auditability at the catalog, schema, table, and column level — all managed centrally.</p><p>o <strong>Role-based access control (RBAC)</strong>: Users were granted access only to the data they needed based on their business function and region, ensuring least-privilege access.</p><p>o <strong>Audit trails and compliance automation</strong>: With Unity Catalog’s built-in data lineage and access logging, we established end-to-end visibility into who accessed what data and when — simplifying compliance with industry regulations (e.g., GDPR, HIPAA).</p><p><strong>The impact</strong>:</p><ul><li>✅ 99% reduction in manual data processing</li><li>✅ 97% elimination of Excel tracking</li><li>✅ 95% FTE cost savings on data prep</li><li>✅ Real-time insights across all regions</li><li>✅ Unified, governed data foundation for future scaling</li></ul><p><strong>Key Takeaways and Next Steps</strong></p><p>Still relying on Excel for critical data work? You’re not alone — but there’s a better way forward.</p><p>Here’s how to start your transformation:</p><ol><li><strong>Assess current Excel workflows</strong> and identify automation opportunities.</li><li><strong>Adopt Databricks</strong> for scalable data transformation using the Medallion architecture.</li><li><strong>Deploy Sigma</strong> to give business users access to live dashboards with a familiar interface.</li><li><strong>Implement write-back workflows</strong> to create dynamic, two-way reporting systems.</li><li><strong>Secure your data</strong> with Unity Catalog and fine-grained access control.</li></ol><p><strong>Conclusion</strong></p><p>Databricks and Sigma represent the future of analytics — combining <strong>scale, speed, and simplicity.</strong> By moving away from Excel and embracing cloud-native platforms, businesses can unlock real-time insights, reduce operational overhead, and foster a truly data-driven culture.</p><p>It’s time to take your KPIs out of Excel — and into the cloud.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92289fa97724" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Empowering Data Engineering with Prophecy + Databricks: A Real-World Team Experience]]></title>
            <link>https://medium.com/@nikhilmohod21/empowering-data-engineering-with-prophecy-databricks-a-real-world-team-experience-7631007948f8?source=rss-2e8ed2e345b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7631007948f8</guid>
            <dc:creator><![CDATA[Nikhil Mohod]]></dc:creator>
            <pubDate>Thu, 03 Jul 2025 12:27:26 GMT</pubDate>
            <atom:updated>2025-07-03T12:27:26.357Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s fast-paced data-driven world, building scalable, maintainable, and collaborative data pipelines is no longer a luxury — it’s a necessity. While Apache Spark and Databricks have long been powerful tools in the data engineering arsenal, their full potential can sometimes be locked behind complex, code-heavy workflows. That’s where <strong>Prophecy</strong> steps in — and where our team’s journey truly start.</p><p>In this blog, I’ll walk through how our team integrated <strong>Prophecy with Databricks and Spark</strong>, the challenges we faced, and how this combination helped us deliver better, faster, and more governed data pipelines — all while enabling both coders and non-coders to contribute actively.</p><p><strong>Setting Up: Execution Engine + Secure Access</strong></p><p>To get started, we configured <strong>Prophecy’s execution engine — called Fabric</strong> — to run on our Databricks environment. We authenticated using <strong>Databricks Personal Access Tokens (PATs)</strong> and <strong>OAuth</strong>, ensuring secure and streamlined integration between Prophecy’s UI and our Databricks clusters.</p><p>This setup allowed us to bridge the gap between a user-friendly interface and a robust compute platform, without compromising on scalability or security.</p><p><strong>Building a Code Repository with Prophecy Projects</strong></p><p>One of Prophecy’s core strengths is the concept of a <strong>Project</strong> — essentially a code repository behind the scenes. Each pipeline we built visually using Prophecy’s drag-and-drop interface was translated into clean, version-controlled Spark code in real time.</p><p>This project structure provided:</p><ul><li>A single source of truth for our components</li><li>Reusable modules and shared logic across teams</li><li>Easy onboarding for new team members</li></ul><p>The fact that everything we created in the UI was backed by real, editable code which was a game-changer — we never felt like we were giving up control or flexibility.</p><p><strong>No-Code/Low-Code Doesn’t Mean Less Power</strong></p><p>A major concern when adopting visual tools is the loss of fine-grained control. But with Prophecy, <strong>we used Databricks features, Spark logic, and custom code seamlessly</strong> inside the visual framework.</p><p>Whether it was parameterizing a pipeline, leveraging built-in functions or injecting UDFs. Prophecy allowed us to:</p><ul><li>Incorporate custom Spark logic where needed</li><li>Use notebooks alongside visual components</li><li>Reuse our existing code assets in a governed, modular way</li></ul><p>This hybrid approach ensured we didn’t have to compromise between productivity and performance.</p><p><strong>Boosting Productivity with Data Copilot</strong></p><p>One of the standout features was <strong>Prophecy’s Data Copilot</strong> — a smart assistant that helped us:</p><ul><li>Generate transformation logic using natural language</li><li>Accelerate the creation of complex expressions</li><li>Reduce time spent writing boilerplate<a href="#_msocom_3">[HA3]</a> code</li></ul><p>This AI-powered capability turned out to be a massive productivity boost, especially during prototyping and ideation. What would have taken hours of coding could now be drafted in minutes — then reviewed, refined, and tested collaboratively.</p><p><strong>Git-Backed Development and Team Collaboration</strong></p><p>Prophecy’s <strong>Git integration</strong> made collaboration smooth and transparent. Our team followed a standard <strong>feature branch → PR → merge</strong> workflow, with every pipeline change tracked and reviewed like traditional software.</p><p>This ensured:</p><ul><li>Code quality and peer reviews</li><li>Rollbacks and history tracking</li><li>CI/CD readiness for production pipelines</li></ul><p>It was exciting to combine the intuitiveness of drag-and-drop with the discipline of software engineering best practices.</p><p><strong>Outcome: Fast, Governed, Scalable Pipelines</strong></p><p>By combining Prophecy and Databricks:</p><ul><li>We <strong>cut pipeline development time significantly</strong></li><li>Reduced errors through <strong>UI-guided configuration and validation</strong></li><li>Enabled <strong>cross-functional teams</strong> to contribute, from data engineers to analysts</li><li>Maintained <strong>governance, version control, and auditability</strong></li></ul><p>The collaboration model we achieved would have taken months to build with traditional tooling.Prophecy allowed us to accelerate not just pipeline delivery, but also team enablement and onboarding.</p><p><strong>Final Thoughts</strong></p><p>Prophecy isn’t just a visual pipeline builder — it’s a full-fledged development ecosystem that complements the raw power of Databricks and Spark. Whether you’re working solo or with a distributed data team, this combination offers the best of both worlds: intuitive development and enterprise-grade flexibility.</p><p>If you’re building modern data platforms and looking to scale faster without losing control, this is a stack worth exploring.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7631007948f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Data Ingestion with Apache Airflow: How to Build Bulletproof Pipelines]]></title>
            <link>https://medium.com/@nikhilmohod21/mastering-data-ingestion-with-apache-airflow-how-to-build-bulletproof-pipelines-ab9cf0615b0c?source=rss-2e8ed2e345b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab9cf0615b0c</guid>
            <dc:creator><![CDATA[Nikhil Mohod]]></dc:creator>
            <pubDate>Tue, 01 Jul 2025 05:01:18 GMT</pubDate>
            <atom:updated>2025-07-01T05:01:18.764Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s data-driven world, getting the right data to the right place at the right time is no longer optional — it’s essential. Whether you’re feeding dashboards, training models, or meeting compliance deadlines, <strong>data ingestion</strong> is the heartbeat behind it all.</p><p>But as pipelines grow more complex, simply “moving data” isn’t enough. You need workflows that are <strong>automated, reliable, scalable</strong>, and — ideally — don’t wake you up at 3 AM when something breaks.</p><p>That’s where <strong>Apache Airflow</strong> comes in — a flexible, powerful orchestrator that lets you build and monitor robust data pipelines like a pro.</p><p>In this guide, we’ll break down what data ingestion really means, why Airflow is such a solid fit, and walk through a real-world use case involving <strong>Databricks notebooks</strong>, <strong>CSV exports</strong>, and <strong>SFTP file transfers</strong> — with all the alerting, logging, and scheduling goodness built in.</p><h3>What is Data Ingestion, Really?</h3><p>Data ingestion is the process of pulling data from one or more sources — think APIs, files, databases, logs — and pushing it into a destination like a <strong>data lake</strong>, <strong>warehouse</strong>, or <strong>analytics platform</strong>.</p><p>There are two major flavors:</p><p>· <strong>Batch Ingestion</strong>: Moving data at scheduled intervals. Great for things like daily report exports or nightly database syncs.</p><p>· <strong>Real-Time Ingestion</strong>: Capturing data as it happens (e.g., sensor data, live user interactions) for immediate processing.</p><p>Whether it’s batch or real-time, ingestion is the starting point for everything downstream — analytics, machine learning, or business operations.</p><h3>🚀 Why Airflow is a Game-Changer for Ingestion Workflows</h3><p><strong>Apache Airflow</strong> isn’t just for data engineers; it’s for anyone tired of brittle cron jobs and hidden Python scripts that no one wants to maintain.</p><p>Here’s why Airflow is a go-to tool for ingestion pipelines:</p><h3>Python-Powered Workflows</h3><p>Define your entire pipeline in Python — complete with version control, testing, modularity, and comments (yes, actual documentation!).</p><h3>Automated Scheduling</h3><p>Use cron-style expressions or custom intervals to kick off your workflows — no more setting calendar reminders to run jobs manually.</p><h3>Visual Debugging</h3><p>Airflow’s web UI gives you a real-time, visual view of each task — successes, failures, retries, and logs — so you can fix issues fast.</p><h3>Extensibility by Design</h3><p>Airflow includes prebuilt operators for common tools like <strong>S3</strong>, <strong>Databricks</strong>, <strong>SFTP</strong>, and <strong>Slack</strong>, and lets you build your own if needed.</p><h3>Smart Alerting</h3><p>Integrate alerts via email or chat so your team knows exactly when something breaks (or succeeds!).</p><h3>Real-World Use Case: Automating Daily Financial Reports</h3><p>Let’s say you work in finance. Each day, your team needs to:</p><p>1. Run a <strong>Databricks notebook</strong> that generates daily metrics and saves them as CSVs</p><p><strong>2.</strong> <strong>Transfer those CSVs</strong> to a third-party vendor via <strong>SFTP</strong></p><p><strong>3.</strong> <strong>Log everything</strong></p><p>4. <strong>Send alerts</strong> if anything fails</p><p>It’s a simple idea with a lot of moving parts. Here’s how Airflow handles it like a champ.</p><h3>Your Airflow DAG Workflow</h3><p>Here’s a simplified outline of the pipeline in Airflow:</p><p>Start ➝ Run Databricks Notebook ➝ Fetch CSV ➝ Send via SFTP ➝ End<br> ↳ Notify on Failure (if anything breaks)</p><p>And here’s what that looks like in code:</p><p>python</p><p>from airflow import DAG<br> from airflow.operators.dummy import DummyOperator<br> from airflow.operators.python import PythonOperator<br> from airflow.providers.databricks.operators.databricks import DatabricksRunNowOperator<br> from airflow.providers.sftp.operators.sftp import SFTPOperator<br> from airflow.operators.email import EmailOperator<br> from datetime import datetime<br> <br> def download_csv_files():<br> print(“Downloading CSV from Databricks/cloud storage…”)<br> with open(“/tmp/report.csv”, “w”) as f:<br> f.write(“column1,column2\nvalue1,value2\n”)<br> print(“Saved CSV to /tmp/report.csv”)<br> <br> with DAG(<br> dag_id=”daily_csv_ingestion”,<br> schedule_interval=”0 3 * * *”, # 3 AM UTC<br> start_date=datetime(2023, 1, 1),<br> catchup=False,<br> tags=[“data_ingestion”, “finance”, “databricks”, “sftp”],<br> description=”Generates and sends daily financial reports via SFTP.”<br> ) as dag:<br> <br> start = DummyOperator(task_id=”start_ingestion”)<br> <br> run_notebook = DatabricksRunNowOperator(<br> task_id=”run_databricks_notebook”,<br> databricks_conn_id=”databricks_default”,<br> job_id=123456, # Replace with your Databricks Job ID<br> do_xcom_push=False<br> )<br> <br> fetch_csv = PythonOperator(<br> task_id=”fetch_csv_files”,<br> python_callable=download_csv_files<br> )<br> <br> send_sftp = SFTPOperator(<br> task_id=”send_csv_via_sftp”,<br> ssh_conn_id=”sftp_connection”,<br> local_filepath=”/tmp/report.csv”,<br> remote_filepath=”/upload/daily_report_{{ ds }}.csv”,<br> operation=”put”,<br> create_intermediate_dirs=True<br> )<br> <br> notify_failure = EmailOperator(<br> task_id=”notify_failure”,<br> <a href="/service/mailto:to=%22alerts@yourcompany.com">to=”alerts@yourcompany.com</a>”,<br> subject=”Airflow Alert: Ingestion Pipeline Failed”,<br> html_content=”””<br> &lt;h3&gt;Ingestion Pipeline Failed&lt;/h3&gt;<br> &lt;p&gt;DAG: {{ dag.dag_id }}&lt;br&gt;Task: {{ ti.task_id }}&lt;br&gt;Run: {{ run_id }}&lt;/p&gt;<br> &lt;p&gt;&lt;a href=’{{ ti.log_url }}’&gt;View Logs&lt;/a&gt;&lt;/p&gt;<br> “””,<br> trigger_rule=”one_failed”<br> )<br> <br> end = DummyOperator(task_id=”end_ingestion”)<br> <br> start &gt;&gt; run_notebook &gt;&gt; fetch_csv &gt;&gt; send_sftp &gt;&gt; end<br> [run_notebook, fetch_csv, send_sftp] &gt;&gt; notify_failure</p><h3>Airflow in the Wild</h3><p>Still wondering if Airflow is worth the setup?</p><p>· <strong>68% of Airflow users</strong> in the 2024 community survey said they use it for ingestion pipelines.</p><p>· It powers workflows at <strong>Netflix, Stripe, Airbnb</strong>, and thousands more.</p><p>· It has <strong>12M+ downloads/month</strong>, a vibrant community, and endless plugin support.</p><p>In short: it works, and it scales.</p><h3>Want to Go Deeper?</h3><p>Here are some links to help you build even faster:</p><p>· <a href="https://airflow.apache.org/docs/">Apache Airflow Docs</a></p><p>· Astronomer Guides</p><p>· DatabricksRunNowOperator Docs</p><p>· <a href="https://airflow.apache.org/docs/apache-airflow-providers-sftp/stable/operators.html">SFTP Operator Setup</a></p><h3>Final Thoughts</h3><p>Building strong data pipelines doesn’t need to be stressful. With Airflow, you can create reliable, observable workflows that scale with your team and your data.</p><p>Whether you’re orchestrating notebooks, moving files, or alerting on failures — Airflow lets you do it all in one place, with code you control.</p><p><strong>Start small. Keep it modular. And always build for tomorrow.</strong> Your future self will thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab9cf0615b0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secure Data Provisioning With Airflow]]></title>
            <link>https://medium.com/@nikhilmohod21/secure-data-provisioning-with-airflow-48febaf667ce?source=rss-2e8ed2e345b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/48febaf667ce</guid>
            <dc:creator><![CDATA[Nikhil Mohod]]></dc:creator>
            <pubDate>Tue, 01 Jul 2025 04:42:12 GMT</pubDate>
            <atom:updated>2025-07-01T04:42:12.738Z</atom:updated>
            <content:encoded><![CDATA[<p>Automate and securely share processed data with a third-party using Apache Airflow</p><p>Technology Stack: Apache Airflow 2.10, Databricks, Azure Data Lake Storage, GPG/PGP Encryption, SFTP</p><h3>Technology Stack:</h3><p>· Apache Airflow 2.10</p><p>· Databricks (PySpark Notebooks)</p><p>· Azure Data Lake Storage (ADLS)</p><p>· GPG/PGP for file encryption</p><p>· SFTP for secure delivery</p><p>· Azure Logic Apps (triggering downstream workflows)</p><p><strong>Workflow Steps</strong></p><p><strong>1. Notebook Execution (Databricks)</strong></p><p>· Airflow uses the DatabricksSubmitRunOperator to start the pipeline.</p><p>· To clean, transform, and enrich the data, a PySpark notebook is used.</p><p>· The final dataset (CSV/Parquet) is the output format.</p><p><strong>2. Data Export to Azure</strong></p><p>· Once the data is ready, it’s exported directly to <strong>Azure Data Lake Storage</strong>.</p><p>· Airflow uses <strong>Azure hooks</strong> to check for file presence, size, and schema correctness.</p><p><strong>3. PGP Encryption</strong></p><p>· The exported file is then encrypted using the <strong>public PGP key</strong> shared by the third party.</p><p>· This step ensures that even if the file is intercepted, it remains unreadable.</p><p><strong>4. Secure File Transfer</strong></p><p>· After encryption, the file is uploaded to the third party’s SFTP server using the <strong>SFTPHook</strong>.</p><p>· Airflow handles credential management, file upload, and basic validation.</p><p><strong>Logging and Monitoring</strong></p><p>· Every task in the DAG logs its output in a structured way.</p><p>· Centralized logging is enabled (e.g., to Azure Monitor or local logs).</p><p>· Airflow sends real-time alerts via <strong>Slack</strong> or <strong>email</strong> for task failures or unexpected behavior.</p><p><strong>Scheduling and Retry Strategy</strong></p><p>· The DAG is scheduled to run daily at <strong>2 AM IST</strong>.</p><p>· A retry policy is configured to handle transient failures.</p><p>· <strong>SLA monitoring</strong> is applied to ensure that every step finishes within its expected time window.</p><p><strong>Optimization Techniques</strong></p><p>· <strong>Parallelism:</strong> Separate processes, such as metadata logging and encryption, are carried out concurrently.</p><p>· <strong>Cluster Reuse:</strong> To save setup time, Databricks clusters are reused across runs.</p><p>· <strong>Chunked Transfer:</strong> To prevent upload bottlenecks, large files are divided.</p><p>· <strong>Metadata tracking:</strong> For audits, file information (name, size, and checksum) is recorded.</p><p><strong>Security and Compliance</strong></p><p>· <strong>PGP keys</strong> and <strong>SFTP credentials</strong> are securely stored using Airflow’s secret backends or environment variables.</p><p>· Only <strong>encrypted files</strong> are sent outside the organization.</p><p>· Role-based access control (RBAC) is enabled in Airflow UI.</p><h3>Integration Highlights</h3><p>· DatabricksSubmitRunOperator — for notebook execution</p><p>· BranchPythonOperator- for conditional validation logic</p><p>· SFTPHook — for secure file transfer</p><p>· SimpleHttpOperator — to call Azure Logic App</p><h3>Key Stats</h3><p>· ~12 partitioned files shared daily with 99.9% delivery success</p><p>· Reduced pipeline failures by 85% post-AQ implementation</p><p>· Zero manual interventions after DAG implementation</p><p><strong>Benefits</strong></p><p>· Fully automated and secure pipeline</p><p>· Easy to maintain and scale as data grows</p><p>· Seamless integration with cloud-native tools</p><p>· End-to-end logging and alerting</p><p>· Meets compliance and governance standards</p><p><strong>Conclusion</strong></p><p>This use case demonstrates how <strong>Apache Airflow 2.10</strong> can be the central brain of a secure, scalable, and transparent data provisioning pipeline. With integrations across <strong>Databricks</strong>, <strong>Azure</strong>, and <strong>SFTP</strong>, it offers a modern approach to securely share sensitive data with external partners — with full audit trails, automation, and reliability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48febaf667ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up Apache Airflow Locally for Learning and Testing]]></title>
            <link>https://medium.com/@nikhilmohod21/how-to-set-up-apache-airflow-locally-for-learning-and-testing-14fc5e0c8e4a?source=rss-2e8ed2e345b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/14fc5e0c8e4a</guid>
            <dc:creator><![CDATA[Nikhil Mohod]]></dc:creator>
            <pubDate>Tue, 01 Jul 2025 04:35:52 GMT</pubDate>
            <atom:updated>2025-07-01T04:35:52.630Z</atom:updated>
            <content:encoded><![CDATA[<p>Apache Airflow is a widely used tool for building, scheduling, and monitoring workflows. If you are new to Airflow or want to experiment locally, this guide will walk you through two recommended ways to set it up:</p><p>This guide explains two common ways to set up Airflow locally:</p><ol><li>Using <strong>Docker Compose</strong> (official method)</li><li>Using <strong>Astronomer CLI</strong> (developer-friendly tool from the Astronomer team)</li></ol><h3>Option 1: Setup Using Docker Compose</h3><h3>Prerequisites</h3><ul><li>Docker installed</li><li>Docker Compose (comes with Docker Desktop)</li><li>Terminal access</li><li>At least 4GB of free memory</li></ul><h3>Step-by-step Instructions</h3><p><strong>Step 1: Download the official Docker Compose file</strong></p><p>Paste this into your terminal:</p><p><em>curl -LfO ‘</em><a href="https://airflow.apache.org/docs/apache-airflow/2.8.1/docker-compose.yaml&#39;"><em>https://airflow.apache.org/docs/apache-airflow/2.8.1/docker-compose.yaml&#39;</em></a></p><p><strong>Step 2: Set environment variables</strong></p><p>Run:</p><p><em>AIRFLOW_UID=$(id -u)<br>echo -e “AIRFLOW_UID=$AIRFLOW_UID\nAIRFLOW_IMAGE=apache/airflow:2.8.1” &gt; .env</em></p><p>Step 3: Initialize Airflow</p><p><em>docker compose up airflow-init</em></p><p>This step prepares the database and folders.</p><p><strong>Step 4: Start the services</strong></p><p><em>docker compose up</em></p><p>Airflow web server, scheduler, and other components will start.</p><p><strong>Step 5: Access the Airflow UI</strong></p><p>Open your browser and go to:<br> <a href="http://localhost:8080/">http://localhost:8080</a></p><p>Login using:</p><ul><li>Username: airflow</li><li>Password: airflow</li></ul><p><strong>Step 6: Add a sample DAG</strong></p><ol><li>Open the dags/ folder.</li><li>Create a file named hello_airflow.py:</li></ol><blockquote>from airflow import DAG<br>from airflow.operators.bash import BashOperator<br>from datetime import datetime</blockquote><blockquote>with DAG(‘hello_airflow’, start_date=datetime(2023, 1, 1), schedule_interval=’@daily’, catchup=False) as dag:<br> task = BashOperator(<br> task_id=’print_hello’,<br> bash_command=’echo “Hello, Airflow!”’<br> )</blockquote><p>3. Save the file and refresh the Airflow UI.</p><p>To stop services and clean everything:</p><p><em>docker compose down</em></p><p><em>docker compose down — volumes — remove-orphans</em></p><h3>Option 2: Setup Using Astronomer CLI</h3><p>The Astronomer CLI simplifies Airflow development locally. It wraps Docker under the hood but adds features like project templates, hot-reload, and version pinning.</p><h3>Prerequisites</h3><ul><li>Docker installed</li><li>Astronomer CLI installed</li></ul><p>To install the CLI:</p><p><em>curl -sSL </em><a href="https://install.astronomer.io/"><em>https://install.astronomer.io</em></a><em> | sudo bash</em></p><p><em>astro version</em></p><h3>Step-by-step Instructions</h3><p><strong>Step 1: Create a new project</strong></p><p><em>astro dev init</em></p><p>This creates a project with the following structure:</p><blockquote>.<br>├── dags/<br>├── Dockerfile<br>├── packages.txt<br>├── requirements.txt<br>└── airflow_settings.yaml</blockquote><p>Step 2: Start Airflow</p><p><em>astro dev start</em></p><p>It launches Airflow locally with all required components.</p><p><strong>Step 3: Access the UI</strong></p><p>Go to <a href="http://localhost:8080/">http://localhost:8080</a><br> Login using:</p><ul><li>Username: admin</li><li>Password: admin</li></ul><p><strong>Step 4: Add your DAG</strong></p><p>Place your .py file in the dags/ folder. If needed, restart services with:</p><p><em>astro dev restart</em></p><p><em>astro dev stop</em></p><h3>When to Use Which Option?</h3><p>MethodUse When You Want To…Docker ComposeLearn Airflow or build quick prototypesAstronomer CLIDevelop DAGs with faster testing and hot-reload</p><h3>Useful Links</h3><ul><li>Official Docs: https://airflow.apache.org/docs/apache-airflow/stable/index.html</li><li>Astronomer CLI Docs: https://docs.astronomer.io/astro/cli/overview</li><li>Astronomer GitHub: https://github.com/astronomer/astro-cli</li></ul><p>Both Docker Compose and Astronomer CLI give you a fully functional local Airflow setup. Choose the one that fits your workflow and comfort level.</p><p>If you’re just starting, try Docker Compose first. If you’re building multiple DAGs or want CI/CD support, explore Astronomer CLI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14fc5e0c8e4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Delta Sharing in Databricks With ServiceNow]]></title>
            <link>https://medium.com/@nikhilmohod21/delta-sharing-in-databricks-with-servicenow-8796241cfdc2?source=rss-2e8ed2e345b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8796241cfdc2</guid>
            <dc:creator><![CDATA[Nikhil Mohod]]></dc:creator>
            <pubDate>Tue, 29 Apr 2025 18:16:30 GMT</pubDate>
            <atom:updated>2025-04-29T18:22:17.975Z</atom:updated>
            <content:encoded><![CDATA[<p>Data duplication, complex pipelines, and governance nightmares have long been challenges in enterprise data ecosystems. As companies integrate platforms like ServiceNow with Databricks for analytics and AI, traditional ETL processes become bottlenecks. Enter Delta Sharing, a zero copy data sharing technology that revolutionizes how data is accessed across systems.</p><p><strong>What Is Zero Copy Integration?</strong><br>Zero Copy Integration means sharing data without physically moving or duplicating it. Instead of exporting files or syncing databases, systems can access the same dataset directly and securely.</p><p><strong>Delta Sharing: The Open Solution</strong><br>Delta Sharing is an open protocol developed by Databricks to enable secure, real-time data sharing across different platforms, clouds, and tools — without copying data. It allows users to share live Delta Lake tables with recipients via a REST API or directly in analytics tools like Power BI or Tableau.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fodC9kkYwHpc5A3-UB6mUw.png" /><figcaption>Credits:Databricks</figcaption></figure><p><strong>How Delta Sharing Works</strong><br>- Data is stored in Delta Lake tables in your Databricks workspace.<br>- Through Unity Catalog, you manage access, governance, and metadata.<br>- External systems receive a secure access token and a share link.<br>- They query the data in place — zero copy, real-time.</p><p>Use Case: Integrating ServiceNow with Databricks<br>Imagine you’re managing ITSM data in ServiceNow and want to:<br>- Analyze incident trends<br>- Predict SLA breaches<br>- Build dashboards for support teams</p><p>Here’s how it works:<br>1. Ingest ServiceNow data into Databricks (via REST API, Fivetran, etc.)<br>2. Clean and transform the data in Delta Lakehouse<br>3. Share processed datasets using Delta Sharing<br>4. Allow BI tools or downstream systems to access that data without ETL</p><p>Sample Code: Connecting to ServiceNow and Ingesting Data</p><p>import requests<br>import json</p><p>%python</p><p># Set up ServiceNow connection<br>instance = “<a href="https://your_instance.service-now.com/">https://your_instance.service-now.com</a>&quot;<br>user = “your_username”<br>password = “your_password”<br>headers = {“Accept”: “application/json”}</p><p># Target table (e.g., incidents)<br>table = “incident”<br>url = f”{instance}/api/now/table/{table}”</p><p># Make request<br>response = requests.get(url, auth=(user, password), headers=headers)<br>data = response.json().get(‘result’, [])</p><p># Convert to Spark DataFrame<br>df = spark.read.json(spark.sparkContext.parallelize([json.dumps(record) for record in data]))<br>df.write.format(“delta”).mode(“overwrite”).save(“/mnt/datalake/servicenow/incident”)</p><p><strong>Delta Sharing: Sharing the Ingested Table</strong><br>%sql<br> — Create a share and add the table<br>CREATE SHARE servicenow_analytics_share;<br>ALTER SHARE servicenow_analytics_share ADD TABLE catalog.schema.incident_data;</p><p>— Grant access to a recipient<br>CREATE RECIPIENT bi_team USING IDENTITY ‘&lt;recipient_token&gt;’;<br>GRANT SELECT ON SHARE servicenow_analytics_share TO RECIPIENT bi_team;</p><p><strong>Benefits of Delta Sharing</strong><br>| Feature | Benefit |<br>| — — — — | — — — — -|<br>| ✅ Zero Copy | No redundant storage or data movement |<br>| ⏳ Real-Time Access | Consumers always see the latest data |<br>| 🔐 Fine-Grained Security | Role-based policies via Unity Catalog |<br>| ♻️ Open Protocol | Works across vendors and platforms |</p><p><strong>GenAI + Delta Sharing</strong><br>You can layer LLMs and GenAI on top of shared data to:<br>- Summarize incidents<br>- Recommend resolutions<br>- Extract root causes<br>All without needing to replicate the data in each tool.</p><p><strong>Conclusion</strong><br>Delta Sharing transforms how organizations collaborate with data. For ServiceNow users, it means less overhead, faster insights, and a powerful integration path with Databricks and GenAI workflows. If you’re tired of slow pipelines and siloed systems, it’s time to explore zero copy data sharing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8796241cfdc2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Next-Gen Medallion: Databricks with a Platinum Layer]]></title>
            <link>https://medium.com/@nikhilmohod21/next-gen-medallion-databricks-with-a-platinum-layer-738536f4e042?source=rss-2e8ed2e345b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/738536f4e042</guid>
            <dc:creator><![CDATA[Nikhil Mohod]]></dc:creator>
            <pubDate>Mon, 28 Apr 2025 06:04:02 GMT</pubDate>
            <atom:updated>2025-04-28T06:10:07.670Z</atom:updated>
            <content:encoded><![CDATA[<p>In an era dominated by AI-powered decision-making and real-time personalisation, the classic Databricks Medallion Architecture — Bronze, Silver, and Gold — is no longer sufficient for forward-thinking enterprises. While effective for traditional analytics workflows, it often falls short in scenarios demanding ultra-low latency, high precision, and AI/ML readiness at scale.</p><p>To overcome these challenges, add a <strong>Platinum Layer </strong>to your<strong> Medallion Architecture.</strong></p><p>Positioned above the Gold layer, the Platinum Layer extends the Medallion Architecture to support enterprise-grade use cases such as feature engineering, real-time inference, and high-quality, governed data delivery. Built on Databricks-native technologies like Delta Lake, Unity Catalog, and Genie LLM, it enables rapid data accessibility, enriched datasets, and seamless AI integration.</p><p>For organisations aiming not just to compete, but to lead in the data-driven economy, adopting a Platinum Layer isn’t an upgrade — it’s a strategic imperative.</p><p>🏗<strong>️ Medallion Architecture: A Quick Refresher</strong></p><p>The Medallion Architecture is a foundational data design pattern for structuring data in a Databricks Lakehouse. It organises data into three progressively refined stages:</p><p>Bronze: Raw, ingested data — unfiltered and unvalidated.</p><p>Silver: Cleaned and conformed data — transformed and validated for downstream use.</p><p>Gold: Aggregated, business-level data — optimised for reporting and dashboarding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*wuzrG53DPXl0VauZUPZE1g.png" /><figcaption>Image credits: Databricks</figcaption></figure><p>This multi-hop architecture enables incremental data refinement, where each layer adds structure, quality, and business context to the data as it flows through the system.</p><p>🧠 <strong>When Should You Add a Platinum Layer?</strong></p><p>The decision to introduce a Platinum Layer in your Medallion Architecture should be guided by the complexity and precision required by your project. It becomes essential when you need:</p><p>🔍 Advanced data enrichment using Databricks Feature Store</p><p>⚡ Low-latency querying with Delta Lake’s optimized storage and Photon execution engine</p><p>🎯 High-accuracy, AI-ready data for machine learning pipelines</p><p>🧬 Hyper-personalisation via real-time customer segmentation or recommender systems</p><p>🧠 Predictive systems that feed directly into live applications</p><p>The Platinum Layer enables AI/ML systems to consume the most refined and high-quality data, served at scale through Databricks-native tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*2JvLEA0iAsq3j1uQM4uOnw.png" /><figcaption>Image Credits: Kythera Labs</figcaption></figure><p>🧭<strong> Why Add a Platinum Layer?</strong></p><p>While the Gold Layer supports dashboards and analytics use cases, the Platinum Layer caters to AI-powered, real-time, and production-grade systems.</p><p>In industries like finance, healthcare, and retail, where decisions must be made with precision and speed, Platinum datasets are designed to be:</p><p>💠 Fully governed through Unity Catalog</p><p>🔁 Refreshed and queryable in near-real-time with Delta Live Tables</p><p>🔍 Discoverable and reusable across teams using the Databricks Data Marketplace or internal Data Explorer</p><p>📊 When integrated with tools like Power BI, this layer ensures presentation-ready, compliant, and trustworthy data for executive-level insights and AI applications alike.</p><p>🏛<strong>️ Governance with Unity Catalog</strong></p><p>Unity Catalog acts as the backbone of secure data access across all Medallion layers, including Platinum. It offers:</p><p>🛡️ Fine-grained access control across workspaces</p><p>🔎 Column- and row-level lineage tracking</p><p>🔐 Audit logging for compliance (GDPR, HIPAA, etc.)</p><p>🧾 Governance across all assets — tables, views, ML models, and notebooks</p><p>Unity Catalog integrates seamlessly with Delta Sharing, allowing organisations to securely collaborate with external partners while retaining full control.</p><p>🤖 <strong>AI &amp; ML Use Cases Powered by the Platinum Layer</strong></p><p>With high-quality, curated data flowing into the Platinum Layer, enterprises can power:</p><p>📈 Predictive analytics using Databricks AutoML</p><p>🔄 Self-learning systems that adapt using MLflow model tracking</p><p>💰 P&amp;L simulations built on robust historical and real-time data</p><p>🚨 Early warning and anomaly detection systems with real-time feature pipelines</p><p>Thanks to Databricks Model Serving, ML models trained on Platinum data can be deployed with one-click and accessed via REST APIs — bringing predictions into operational systems instantly.</p><p>🗣️ <strong>Leveraging Agentic AI on the Platinum Layer</strong></p><p>Agentic AI chatbots and intelligent assistants — often powered by GenAI tools like Databricks’ Genie LLM or MosaicML — are revolutionising enterprise workflows.</p><p>🔧 These systems automate:</p><p>Data cleaning and transformation via Delta Live Tables</p><p>Insight generation through prompt-based querying over Unity Catalog</p><p>Visualisation creation powered by Databricks Notebooks + SQL AI Assistants</p><p>🏢 Leaders like Netflix and Google use these systems to dynamically adjust their ETL pipelines and personalisation engines — automatically fine-tuning customer experiences in real time.</p><p>Even non-technical users can now interact with the data layer using natural language — powered by LLMs hosted and governed securely within the Databricks environment.</p><p><strong>Conclusion</strong></p><p>As the demand for intelligent, real-time, and highly personalized experiences grows, enterprises can no longer rely solely on traditional data architectures. The Platinum Layer elevates the classic Medallion framework into a future-proof data foundation — one that seamlessly integrates AI, enforces governance, and delivers trusted insights at scale. By adopting this advanced layer, organizations position themselves not just as data-driven, but AI-first — ready to innovate, compete, and lead in an increasingly automated world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=738536f4e042" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>