<?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 Jaya Krishna Medimpudi on Medium]]></title>
        <description><![CDATA[Stories by Jaya Krishna Medimpudi on Medium]]></description>
        <link>https://medium.com/@jayakrishnamedimpudi?source=rss-6f278f0134fc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WoJMO8w3YzayxlQ23Qs-hQ.jpeg</url>
            <title>Stories by Jaya Krishna Medimpudi on Medium</title>
            <link>https://medium.com/@jayakrishnamedimpudi?source=rss-6f278f0134fc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 21:26:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jayakrishnamedimpudi/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[Designing a Payments Reporting Platform on GCP: A Fictional Case Study]]></title>
            <link>https://jayakrishnamedimpudi.medium.com/designing-a-payments-reporting-platform-on-gcp-a-fictional-case-study-7ff5232d99bd?source=rss-6f278f0134fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ff5232d99bd</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[analytics-engineering]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[vertex-ai]]></category>
            <dc:creator><![CDATA[Jaya Krishna Medimpudi]]></dc:creator>
            <pubDate>Sun, 24 May 2026 06:08:49 GMT</pubDate>
            <atom:updated>2026-05-24T06:08:49.879Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A tool-by-tool walkthrough of how I would architect a cloud-native payments reporting stack for a regional bank from raw transaction data to executive dashboards</strong></p><p><em>6 min read · Data Engineering · Google Cloud Platform · Analytics Engineering</em></p><blockquote><strong><em>Note:</em></strong><em> Clearwater Financial is a fictional bank created for this case study. All scenarios, metrics, and outcomes are hypothetical, designed to illustrate realistic architectural decisions in banking data reporting. This is an architectural thought exercise informed by patterns common in the payments and banking industry.</em></blockquote><h3>The Problem</h3><p>Many regional banks still run their payments reporting the same way they did 15 years ago: nightly batch jobs extract data from the core banking system, load it into an on-premises Oracle warehouse, and generate reports that analysts find waiting for them at 8am, reflecting data that is already 7+ hours stale.</p><p>In this case study, I explore how I would re-architect that reporting stack for a fictional bank, <strong>Clearwater Financial</strong>, using Google Cloud Platform. The goal is not to rebuild the entire payments platform, the core banking system stays in place. The goal is specifically to modernize <strong>how payment transaction data flows into reporting</strong>: faster, more reliable, and ready for AI-powered analytics.</p><p><strong>The brief:</strong></p><ul><li>Replace overnight batch reporting with near real time data freshness</li><li>Create a single source of truth for 5 business units Operations, Risk, Product, Reconciliation, and Compliance</li><li>Satisfy 7-year regulatory data retention (PCI-DSS, SOX, Basel III)</li><li>Build an analytics foundation that can support fraud scoring without a separate ML platform</li></ul><h3>Scope: What This Architecture Covers</h3><p>Before diving in, it is worth being explicit about what this is and is not.</p><p><strong>In scope:</strong> How transaction data is ingested, transformed, stored, and served for reporting and analytics purposes.</p><p><strong>Out of scope:</strong> The core banking system itself, payment processing, card network integrations, and settlement infrastructure. Those systems remain unchanged. This architecture sits downstream of them.</p><p>Think of it as a <strong>reporting layer</strong> built on top of an existing payments system, not a replacement for it.</p><h3>Architecture Overview</h3><p>The reporting platform is built across five layers:</p><pre>Core Banking System<br>       ↓<br>[1] Ingestion      →  Pub/Sub + Cloud Storage<br>[2] Processing     →  Dataflow + Cloud Composer + dbt<br>[3] Storage        →  BigQuery<br>[4] AI / ML        →  BigQuery ML → Vertex AI Pipelines<br>[5] Serving        →  Looker + Looker Studio</pre><p>Each layer has a single, clearly defined responsibility. No layer does another layer’s job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*abIPYaAc4n2V6IT1aaZU3g.png" /></figure><p>The core banking system generates two types of data: <strong>real-time transaction events</strong> (card swipes, ACH initiations, wire confirmations) and <strong>batch files</strong> (end-of-day settlement files, correspondent bank reconciliation reports).</p><p><strong>Pub/Sub</strong> handles the real-time stream. The core banking system publishes one event per transaction to a Pub/Sub topic. Downstream consumers — the Dataflow processing pipeline, the compliance audit logger — each receive an independent copy via their own subscriptions. The core banking system never needs to know who is consuming its events. Adding a new consumer later requires no changes upstream.</p><p><strong>Cloud Storage</strong> handles batch files. End-of-day files from correspondent banks land in Cloud Storage as the raw data lake zone. Lifecycle policies automatically tier files to Nearline (after 90 days) and Coldline (after 1 year), satisfying the 7-year retention requirement at near-zero archival cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*c5t9QpCxNO3KnLR7sJ7mtA.png" /></figure><p><strong>Key trade-off:</strong> Pub/Sub delivers messages at least once, not exactly once. A transaction event may arrive twice on a network retry. Downstream deduplication on transaction_id in the Dataflow pipeline is mandatory, not optional.</p><h3>Layer 2 — Processing: Transforming Raw Data</h3><p>Raw transaction events are not ready for reporting. They need enrichment, masking, scheduling, and modeling. Three tools handle this.</p><p><strong>Dataflow</strong> processes the real-time stream from Pub/Sub. It enriches each event with merchant category codes, applies PCI-compliant tokenization to card numbers (no raw card data ever reaches BigQuery), deduplicates on transaction_id, and writes enriched records to BigQuery&#39;s streaming insert API. The same Dataflow pipeline handles historical batch reprocessing from Cloud Storage — one codebase for both real-time and batch.</p><p><strong>Cloud Composer</strong> (managed Apache Airflow) orchestrates the scheduled reporting jobs. Monthly Basel III reports, daily reconciliation runs, and weekly risk summaries all run as Composer DAGs with hard dependency chains — reconciliation cannot start until Dataflow’s settlement stream signals completion. Failed jobs retry automatically and alert the on-call team before business users notice.</p><p><strong>dbt</strong> governs all SQL-based transformation inside BigQuery. This is the single most impactful decision in the architecture. Before dbt, each business unit maintained its own SQL definitions. The Risk team’s “settled transaction” differed from Operations’. Every cross-functional meeting opened with a metric reconciliation debate.</p><p>dbt enforces a single definition for every metric, version-controlled in Git, tested on every deployment, and documented in a browsable data catalog. The transformation follows a three-layer pattern:</p><ul><li><strong>Staging</strong> — one-to-one with source tables, light renaming only, no business logic</li><li><strong>Intermediate</strong> — joins and business logic: transactions enriched with customer, merchant, and account data</li><li><strong>Marts</strong> — audience-specific aggregations: ops_daily_settlement, risk_fraud_signals, compliance_regulatory_extract</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*t_DIvbna3-UOBDD3qxYsMA.png" /></figure><p>dbt’s schema tests (not_null, unique, accepted_values) run on every deployment, catching data quality issues before they reach analyst dashboards rather than after an escalation.</p><h3>Layer 3 — Storage: BigQuery as the Reporting Warehouse</h3><p>All reporting in this architecture runs against <strong>BigQuery</strong> — Google’s serverless columnar analytics warehouse.</p><p>Two optimization decisions are non-negotiable from day one:</p><p><strong>Partition by </strong><strong>transaction_date.</strong> Every payments report filters by date. Partitioning reduces query cost by 70–80% by scanning only relevant date partitions rather than the full table history. On three years of transaction data, this is the difference between a $2 query and a $35 query.</p><p><strong>Cluster by </strong><strong>account_id.</strong> After date filtering, most queries aggregate by account. Clustering physically co-locates rows with the same account, further reducing bytes scanned.</p><p>Both are enforced via Organization Policy before any analyst has warehouse access. Cost controls are architecture decisions — not operational afterthoughts.</p><p><em>Note: This architecture does not include Cloud Spanner. The operational payments ledger (the source of truth for live transactions) remains in the existing core banking system. BigQuery is purely the reporting and analytics layer.</em></p><h3>Layer 4 — AI/ML: Fraud Scoring Without a Separate ML Platform</h3><p>Clearwater Financial’s data team has strong SQL skills but no dedicated ML engineers. The AI layer is designed around that constraint.</p><p><strong>Phase 1 — BigQuery ML</strong> allows the team to train a logistic regression fraud classifier directly inside BigQuery using SQL. No data movement, no Python, no separate ML platform. A first fraud scoring model — trained on three years of transaction features already in BigQuery — can be in production within two weeks of clean data being available. It is not the most sophisticated model. It is a working model that demonstrates value and earns investment in Phase 2.</p><p><strong>Phase 2 — Vertex AI Pipelines</strong> automates the full retraining cycle once the team is ready: pull updated training data from BigQuery → re-engineer features → retrain → evaluate against the current model → promote if precision/recall improve → log to the Vertex AI Model Registry. The Model Registry provides the compliance audit trail regulators require: exactly which model version scored which transaction and when.</p><p>This phased approach is deliberate. Building full MLOps infrastructure before a single model proves value is a common and expensive mistake.</p><h3>Layer 5 — Serving: The Right Tool for Each Audience</h3><p>Two tools serve two different audiences — using one for both creates either over-engineering or governance problems.</p><p><strong>Looker</strong> serves executives and compliance teams. Its LookML semantic layer defines every business metric centrally — “net settled revenue” is calculated once and every dashboard, every team, every report sees the same number. Row-level security ensures each team only sees authorized data. SOX audit logging records who ran which report, when, with which filters.</p><p><strong>Looker Studio</strong> serves operational teams. Settlement exception counts, daily reconciliation views, and intraday transaction volumes do not require Looker’s governance overhead. Looker Studio connects directly to BigQuery, costs nothing, and lets Operations and Reconciliation analysts build their own daily working reports without raising tickets. In practice this reduces data team ticket volume for simple report requests by an estimated 40–60%.</p><h3>What This Architecture Does Not Solve</h3><p>Being explicit about limitations is as important as the design itself.</p><p>This architecture improves <strong>reporting latency</strong> — from overnight batch to near-real-time. It does not reduce <strong>payment processing latency</strong>. If a customer’s wire transfer takes 2 hours to settle, this architecture reports that more quickly — it does not make the settlement faster.</p><p>It also assumes the core banking system can publish events to Pub/Sub. In practice, legacy core banking systems often cannot do this natively. An intermediate CDC (Change Data Capture) layer — using tools like Debezium or Datastream — is frequently required as a prerequisite step before this architecture can be implemented.</p><h3>Conclusion</h3><p>A payments reporting modernization on GCP does not require rebuilding the entire payments stack. The core banking system stays in place. The goal is a clean, cloud-native reporting layer downstream of it: reliable ingestion, governed transformations, a cost-controlled warehouse, and self-service reporting for every team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ff5232d99bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Was Tired of Writing dbt Docs Manually. So I Built a Script That Does It With AI.]]></title>
            <link>https://jayakrishnamedimpudi.medium.com/i-was-tired-of-writing-dbt-docs-manually-so-i-built-a-script-that-does-it-with-ai-48262e3777e4?source=rss-6f278f0134fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/48262e3777e4</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[analytics-engineering]]></category>
            <category><![CDATA[ai-automation]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Jaya Krishna Medimpudi]]></dc:creator>
            <pubDate>Sun, 10 May 2026 21:16:03 GMT</pubDate>
            <atom:updated>2026-05-10T21:16:03.810Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I combined Python, OpenAI, and dbt to automate one of the most boring parts of analytics engineering.</em></p><p>If you’ve ever worked on a dbt project, you know the feeling.</p><p>You’ve spent hours writing beautiful SQL — clean staging models, well-structured marts, proper naming conventions. The pipeline runs perfectly. You’re proud of it.</p><p>Then someone opens your schema.yml and sees this:</p><pre>- name: fct_orders<br>  description: &quot;&quot;<br>  columns:<br>    - name: order_key<br>      description: &quot;&quot;<br>    - name: total_price<br>      description: &quot;&quot;</pre><p>Empty. Every single description. Empty.</p><p>Not because you didn’t care. But because writing documentation for every model and every column is <em>tedious</em>. It’s the last thing you want to do after finally getting your models to run.</p><p>So I built a script to do it for me.</p><h3>What I Built</h3><p>A Python script that:</p><ol><li>Reads every .sql model file in your dbt project</li><li>Sends the SQL and column names to GPT-4o</li><li>Gets back clean, human-readable descriptions</li><li>Writes them directly into your schema.yml — automatically</li></ol><p>One command. Done.</p><pre>python scripts/generate_docs.py</pre><p>That’s it. Your entire project is documented in seconds.</p><h3>The Before and After</h3><p>Before running the script, your schema.yml looks like every dbt project you’ve ever seen — empty descriptions everywhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l79HxC8mDcX9RLMNvY0e6A.png" /></figure><p>After running it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Jh57jap18SMgbihJ1QStQ.png" /></figure><p>Real descriptions. For every model. For every column. Written by AI, reviewed by you.</p><h3>Why I Built This</h3><p>I’m transitioning into analytics engineering. I’ve been building my portfolio — dbt projects, BigQuery pipelines, data models based on the TPC-H dataset.</p><p>But every time I finished a project, the documentation was the part I dreaded most. It felt like busywork. The SQL already <em>shows</em> what the model does — why do I have to explain it in plain English too?</p><p>Then I realized: that’s exactly the kind of problem AI is good at. Reading code and explaining it in plain English is something LLMs do extremely well. So instead of dreading documentation, I automated it.</p><h3>How It Works — The Technical Bit</h3><p>The script is straightforward. Here’s the core logic:</p><pre>def generate_docs_for_model(model_name, sql, columns):<br>    prompt = f&quot;&quot;&quot;You are a dbt documentation expert.<br>    Given the SQL model named &#39;{model_name}&#39;, generate:<br>    1. A concise model description<br>    2. A description for each column<br>    Respond ONLY in JSON format.<br>    SQL: {sql}<br>    Columns: {columns}&quot;&quot;&quot;</pre><pre>    response = client.chat.completions.create(<br>        model=&quot;gpt-4o&quot;,<br>        messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: prompt}]<br>    )<br>    return json.loads(response.choices[0].message.content)</pre><p>The key insight is the prompt structure. By asking GPT-4o to respond <em>only in JSON</em>, we can reliably parse the output and inject it straight into the YAML file. No cleanup. No manual editing.</p><p>The script then walks through every schema.yml in your project, finds the matching .sql file, generates the docs, and writes them back. All automatically.</p><h3>What I Learned</h3><p><strong>1. LLMs are genuinely useful for structured output tasks</strong> When you constrain the output format tightly (JSON only, specific keys), LLMs become reliable automation tools — not just chat assistants.</p><p><strong>2. The boring parts of data work are the best candidates for AI</strong> Documentation, naming conventions, boilerplate tests — these are high-effort, low-creativity tasks. Perfect for automation.</p><p><strong>3. Small projects teach big lessons</strong> This script is under 80 lines of Python. But building it taught me prompt engineering, API integration, YAML parsing, and how to think about AI as a tool inside a data workflow — not just a chatbot.</p><h3>Try It Yourself</h3><p>The full project is open source on GitHub:</p><p>👉 <a href="https://github.com/SunDevil88/dbt-AI-Document-Generator">github.com/SunDevil88/dbt-AI-Document-Generator</a></p><p>Clone it, point it at your own dbt project, and run it. All you need is an OpenAI API key and Python installed.</p><p>If you find it useful — or have ideas to make it better — I’d love to hear from you. Connect with me on LinkedIn or drop a comment below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48262e3777e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Raw Subscriptions to a Revenue Intelligence Dashboard: A Full Analytics Engineering…]]></title>
            <link>https://jayakrishnamedimpudi.medium.com/from-raw-subscriptions-to-a-revenue-intelligence-dashboard-a-full-analytics-engineering-7c372896a673?source=rss-6f278f0134fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c372896a673</guid>
            <category><![CDATA[analytics-engineering]]></category>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[saas-metrics]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-modeling]]></category>
            <dc:creator><![CDATA[Jaya Krishna Medimpudi]]></dc:creator>
            <pubDate>Sun, 10 May 2026 20:24:58 GMT</pubDate>
            <atom:updated>2026-05-10T20:24:58.359Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i1YX2hhknaG6H8m4tRbpog.png" /></figure><h3>From Raw Subscriptions to a Revenue Intelligence Dashboard: A Full Analytics Engineering Walkthrough</h3><p><em>How I built a production-grade B2B SaaS dashboard using Python, a modern data model, and Tableau — and what every analytics engineer should understand about the BI output layer.</em></p><h3>The problem with most BI dashboards</h3><p>Walk into any company’s internal analytics stack and you’ll find the same thing: a dozen dashboards that no one trusts, built on queries that took three days to write, connected directly to a raw database table that someone else owns and occasionally modifies without warning.</p><p>Leadership asks a question. Someone runs a query. The number doesn’t match what was in last week’s deck. Nobody knows why. The meeting ends without a decision.</p><p>This is the problem that analytics engineering exists to solve. And it’s the problem I set out to demonstrate solving — end to end, from data model to published dashboard — with this project.</p><h3>The setup: Coravio, a fictional B2B SaaS company</h3><p>For this project, I created <strong>Coravio</strong> — a fictional B2B SaaS company with 74 customers across three global regions, three plan tiers, and four acquisition channels. The data spans three full years: January 2022 through December 2024.</p><p>Coravio is fictional, but the data model is entirely real. It mirrors what you’d find at any serious SaaS analytics team: a customer-month grain table that tracks Monthly Recurring Revenue, expansion revenue, churn, and customer attributes at a per-billing-period level.</p><p>This is the grain that powers SaaS metrics. Everything else — NRR, LTV, payback period, cohort retention — derives from it.</p><h3>Step 1: Designing the data model before writing a single line of code</h3><p>The most important decision in any analytics project isn’t which tool you use. It’s the grain of your fact table.</p><p>For SaaS revenue analytics, the answer is almost always <strong>customer-month</strong>: one row per active customer per billing month. Here’s why:</p><ul><li>SUM(mrr) gives you total MRR for any time period</li><li>COUNT(DISTINCT customer_id) gives you active customers</li><li>Dividing those gives you ARPU</li><li>Filtering by plan_tier or segment gives you cohort breakdowns</li><li>No window functions needed at query time</li></ul><p>The alternative — storing only changes (new, expansion, churn events) — is more compact but forces complex window function logic into every downstream query. The customer-month grain trades storage for simplicity, which is always the right trade in a BI context.</p><p>Here’s the schema I landed on:</p><pre>customer_id       STRING    — unique customer key<br>company_name      STRING    — display name<br>plan_tier         STRING    — Starter / Growth / Enterprise<br>segment           STRING    — SMB / Mid-Market / Enterprise<br>region            STRING    — Americas / EMEA / APAC<br>channel           STRING    — Inbound / Direct Sales / Partner / Outbound<br>acquisition_date  DATE      — first subscription date<br>month             DATE      — first day of the billing month (the spine key)<br>mrr               FLOAT     — monthly recurring revenue<br>expansion_mrr     FLOAT     — upsell/expansion revenue this month<br>is_active         INT       — 1 = active, 0 = churned</pre><p>Notice that expansion_mrr is a separate column from mrr. This is intentional. Expansion revenue and new business have fundamentally different economics — you can&#39;t calculate Net Revenue Retention without separating them. Most analytics teams collapse these into a single MRR field and then spend months trying to reverse-engineer the breakdown.</p><h3>Step 2: Generating the data with realistic business logic</h3><p>With the schema locked in, I wrote a Python generator that produces 1,720 records of synthetic subscription data with realistic churn behavior built in.</p><p>The key design decision: churn is modeled probabilistically per tier, not randomly across all customers.</p><pre>PLAN_TIERS = {<br>    &quot;Starter&quot;:    {&quot;mrr_base&quot;: (250, 900),    &quot;churn_rate&quot;: 0.035},<br>    &quot;Growth&quot;:     {&quot;mrr_base&quot;: (900, 4500),   &quot;churn_rate&quot;: 0.020},<br>    &quot;Enterprise&quot;: {&quot;mrr_base&quot;: (4500, 22000), &quot;churn_rate&quot;: 0.008},<br>}</pre><p>Enterprise customers churn at 0.8% per month. Starter customers churn at 3.5%. This is directionally accurate to real SaaS benchmarks — Enterprise contracts have higher switching costs and longer commitment cycles.</p><p>The result is a dataset that tells a real story: strong MRR growth through 2022, a peak in early 2023, then a gradual decline as churn outpaces new business. This is exactly the pattern a leadership team would want to investigate — and exactly the kind of insight a well-built BI dashboard surfaces immediately.</p><h3>Step 3: Building the dashboard with a clear visual hierarchy</h3><p>Five panels, one story:</p><p><strong>Panel 1 — MRR Growth Trend (line chart, full-width top row)</strong> This is the first thing leadership sees. A clean monthly trend from Jan 2022 to Dec 2024 with a single average reference line. The visual tells the story immediately: strong early growth, a peak, a decline. No annotation needed. The axis starts at $100K — not $0 — so the trend movement is visible rather than compressed.</p><p><strong>Panel 2 — MRR by Plan Tier (horizontal bar, top right)</strong> The three bars use a deliberate color hierarchy: Enterprise in dark navy, Growth in medium blue, Starter in light blue. The darkest bar is the longest and carries the most visual weight — Enterprise at $5.5M is instantly recognizable as the dominant revenue source before the reader processes any numbers.</p><p><strong>Panel 3–4 — Revenue by Region and Customers by Segment (bottom row, left and center)</strong> Both use the same medium blue, consistent with the MRR trend line. These are supporting context panels, not the headline story, so they don’t need to visually compete with the top row.</p><p><strong>Panel 5 — Expansion MRR by Channel (bottom right)</strong> This panel intentionally uses teal instead of blue. Expansion MRR is a different type of metric from total MRR — it measures growth within existing accounts, not total revenue. The color shift signals to a sophisticated reader that they’re looking at a different dimension of the business.</p><p>This is the kind of design decision that separates an analytics engineer who thinks about the reader from one who just plots the data.</p><h3>Step 4: The insights the dashboard surfaces</h3><p>Once the dashboard was published, the data told five clear stories:</p><p><strong>1. Enterprise concentration risk.</strong> Enterprise accounts at $5.5M represent roughly 70% of total MRR despite being the smallest customer segment by count (12 customers). This is a classic B2B SaaS concentration risk pattern — a few large accounts driving the majority of revenue.</p><p><strong>2. Americas leads, but the gap is closer than expected.</strong> Americas at $3.6M vs APAC at $2.2M vs EMEA at $2.1M suggests a relatively balanced global footprint. Most early-stage SaaS companies are 70%+ Americas. Coravio’s distribution looks like a company that has deliberately invested in international growth.</p><p><strong>3. SMB volume doesn’t translate to revenue.</strong> SMB has the most customers (32) but the least revenue — because Starter plan churn erodes the base. The Starter tier generates only $311K against Growth’s $2M. A pricing or packaging change targeted at moving SMB customers to Growth would have outsized revenue impact.</p><p><strong>4. Direct Sales drives the most expansion revenue.</strong> At $8,830 expansion MRR, Direct Sales outperforms Inbound despite Inbound having lower CAC. This suggests that sales-assisted accounts expand more aggressively — a common pattern in Enterprise SaaS where account managers actively manage upsell motions.</p><p><strong>5. The MRR decline is a retention problem, not an acquisition problem.</strong> The trend line peaks in early 2023 and declines despite (presumably) continued new customer acquisition. This is the signature of a churn rate that exceeds the new business rate — the leaky bucket problem. The fix isn’t more marketing. It’s reducing Enterprise churn from 0.8% to 0.4%.</p><h3>What this project demonstrates</h3><p>This dashboard is a portfolio artifact, but it was designed to demonstrate something real: the analytics engineering workflow from data model to BI output layer.</p><p>The skills it exercises are exactly what analytics engineering roles require:</p><ul><li><strong>Data modeling</strong> — choosing the right grain, separating metric types, designing for BI consumption</li><li><strong>Business logic in code</strong> — encoding churn behavior, expansion mechanics, and tier economics into reproducible Python</li><li><strong>BI design thinking</strong> — building for the reader, not the tool; color as signal, not decoration</li><li><strong>Communication</strong> — translating a dataset into a narrative a leadership team can act on</li></ul><p>The dashboard is <a href="https://public.tableau.com/app/profile/jaya.krishna.medimpudi7688/viz/Coravio-RevenueIntelligenceDashboard/Dashboard">live</a>. The full code, data dictionary, and generation script are on <a href="https://github.com/SunDevil88/Coravio-Analytics-Revenue-Intelligence-Dashboard">GitHub</a>.</p><h3>What’s next</h3><p>This dashboard intentionally stops at descriptive analytics — what happened. The natural next layer is diagnostic analytics: <em>why</em> did MRR peak in early 2023, <em>which</em> customer cohorts retained best, <em>what</em> predicts expansion revenue.</p><p>That’s a cohort retention analysis, and it’s the next project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c372896a673" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Made My Data Pipeline Actually Trustworthy]]></title>
            <link>https://jayakrishnamedimpudi.medium.com/how-i-made-my-data-pipeline-actually-trustworthy-fef1a32d812e?source=rss-6f278f0134fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/fef1a32d812e</guid>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[dbt]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[analytics-engineering]]></category>
            <dc:creator><![CDATA[Jaya Krishna Medimpudi]]></dc:creator>
            <pubDate>Mon, 04 May 2026 13:55:33 GMT</pubDate>
            <atom:updated>2026-05-04T13:55:33.029Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KcuaVxCSTCi_GBte9oROvA.png" /></figure><p><em>Part 4 of 4 — Building My First Production-Style dbt Project</em></p><p>At this point in the project I had ten working models.</p><p>Five staging models cleaning raw data. One intermediate model joining everything together. Four mart models ready for analytics — dimensions and facts, a proper star schema.</p><p>Running dbt run produced ten green checkmarks every time.</p><p>But I had a nagging feeling.</p><p>Just because the models run doesn’t mean the data is correct. What if there were duplicate order IDs? What if a customer ID in the orders table didn’t exist in the customers table? What if a null value snuck in somewhere and broke a downstream join?</p><p>The models would still run. The tables would still build. And the data would be quietly wrong.</p><p>That’s the most dangerous kind of wrong in data work. The kind nobody notices until a business decision gets made on bad numbers.</p><p>So I added tests.</p><h3>What dbt Tests Actually Are</h3><p>A dbt test is a SQL query that checks a condition about your data. If the condition is violated — the test fails. If the build is set up correctly, a failed test stops everything and alerts you before bad data reaches anyone.</p><p>The most common tests are dead simple:</p><p><strong>unique</strong> — every value in this column appears exactly once. No duplicates.</p><p><strong>not_null</strong> — every row has a value in this column. No blanks.</p><p>You add them in a file called schema.yml right next to your SQL models:</p><pre>- name: stg_orders<br>  columns:<br>    - name: order_id<br>      tests:<br>        - unique<br>        - not_null</pre><p>Four lines. Now dbt will check every single order_id after every single build and fail loudly if anything is wrong.</p><p>I added unique and not_null tests to every primary key across all five staging models. Then I ran:</p><pre>dbt test</pre><p>All tests passed.</p><h3>Why This Felt Different</h3><p>Running SQL and getting results feels like driving a car. You go where you point it.</p><p>Running tests and having them pass feels like knowing the brakes work.</p><p>It’s a different kind of confidence. Not “my query ran” — but “my data is correct and I can prove it.”</p><p>That shift in thinking is what analytics engineering actually is. The SQL is the easy part. The discipline around the SQL — tests, documentation, structure, reproducibility — that’s the craft.</p><h3>The Full Build</h3><p>With tests in place, I could now run the entire pipeline in one command:</p><pre>dbt build</pre><p>dbt build runs seeds, models, and tests in the correct order automatically. It&#39;s the command you&#39;d run in production. It&#39;s the command a CI/CD system would run on every pull request.</p><pre>All 10 | Pass 10 | Error 0</pre><p>Ten models. Zero errors. All tests green.</p><h3>The Git Workflow Nobody Talks About</h3><p>One more thing that made this project feel real.</p><p>I followed a proper branch-based Git workflow the entire time:</p><ul><li>Never committed directly to main</li><li>Every piece of work got its own branch</li><li>Every branch ended with a pull request</li><li>Every commit had a clear, descriptive message</li></ul><p>When you open my GitHub repo, the commit history tells the whole story:</p><pre>add tests and schema docs<br>add intermediate and mart models<br>add staging models<br>add packages and project config<br>initial project setup</pre><p>Five commits. Five milestones. Anyone can read that history and understand exactly how the project was built.</p><p>That’s what a professional data engineer’s repository looks like. And hiring managers notice.</p><h3>What I’d Tell Someone Starting This Today</h3><p>Just start. The setup takes longer than you expect. The first error will confuse you. The second error will annoy you. The third error you’ll fix in two minutes because you’ve seen something like it before.</p><p>That’s how you actually learn.</p><p>The tutorials make it look clean. The real thing is messier and more satisfying.</p><p>My project is live on GitHub if you want to see exactly how it’s structured: <strong>github.com/SunDevil88/tpch-dbt-showcase</strong></p><p>Clone it. Break it. Build your own version.</p><p>The first green checkmark is waiting for you.</p><p><em>This was Part 4 of 4 in the “Building My First dbt Project” series.</em></p><p><em>Jaya Krishna Medimpudi <br>GitHub: github.com/SunDevil88 | LinkedIn: linkedin.com/in/medimpudi88</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fef1a32d812e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I Stopped Writing Raw SQL and Started Thinking in Layers]]></title>
            <link>https://jayakrishnamedimpudi.medium.com/why-i-stopped-writing-raw-sql-and-started-thinking-in-layers-4e805c8925f6?source=rss-6f278f0134fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e805c8925f6</guid>
            <category><![CDATA[dbt]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[analytics-engineering]]></category>
            <dc:creator><![CDATA[Jaya Krishna Medimpudi]]></dc:creator>
            <pubDate>Mon, 04 May 2026 13:55:19 GMT</pubDate>
            <atom:updated>2026-05-04T13:55:19.347Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3aRjS8bLBDK99738FCdq5Q.png" /></figure><p><em>Part 2 of 4 — Building My First Production-Style dbt Project</em></p><p>Before this project, my SQL looked like this:</p><p>One giant query. Joins everywhere. Calculations buried inside subqueries. Logic scattered across 200 lines with no clear structure.</p><p>It worked. But it was fragile. Change one thing and you’d have no idea what broke downstream. And good luck explaining it to anyone else.</p><p>dbt forced me to think differently. Not in queries — in <strong>layers.</strong></p><h3>The Restaurant Analogy That Made It Click</h3><p>Imagine a restaurant kitchen.</p><p>Ingredients arrive at the back door every morning — raw, unprocessed, unlabeled. Tomatoes, flour, cheese. This is your raw data. It exists. It’s messy. It’s not ready for anyone to eat yet.</p><p>The prep station washes, cuts, and labels everything. Nothing is cooked yet. Just cleaned and organized. This is <strong>staging.</strong></p><p>The cooking station combines ingredients. Dough plus sauce plus cheese. Joins happen here. Business logic happens here. Still not the final product — just prepped. This is <strong>intermediate.</strong></p><p>The pass is where the finished pizza comes out. Clean, complete, ready to serve. This is what the customer (analyst) actually gets. This is <strong>marts.</strong></p><p>Three stations. Three jobs. None of them doing the other’s work.</p><h3>What This Looks Like in dbt</h3><h3>The Staging Layer</h3><p>My staging folder has five models — one for each raw table.</p><p>stg_orders.sql takes the raw orders table and does exactly one thing: renames ugly columns to human-readable names.</p><pre>select<br>    o_orderkey    as order_id,<br>    o_custkey     as customer_id,<br>    o_totalprice  as total_price,<br>    o_orderdate   as order_date,<br>    o_orderstatus as status_code<br>from {{ source(&#39;tpch&#39;, &#39;orders&#39;) }}</pre><p>That’s it. No joins. No calculations. Just renaming o_orderkey to order_id so every model downstream speaks the same language.</p><p>Same pattern for customers, line items, suppliers, and parts. Five staging models. Five clean, renamed, readable tables.</p><h3>The Intermediate Layer</h3><p>This is where things get interesting.</p><p>My intermediate model — int_order_items_enriched — joins all five staging models together into one wide table. And it does something staging never would: math.</p><pre>round(l.extended_price * (1 - l.discount), 2)        as net_price,<br>round(l.extended_price * (1 - l.discount) * (1 + l.tax), 2) as gross_price</pre><p>Net price. Gross price. Real business calculations. This model is the foundation everything else is built on.</p><h3>The Mart Layer</h3><p>Four final models that analysts and BI tools actually query:</p><ul><li>dim_customers — one row per customer, all their attributes</li><li>dim_parts — one row per part, brand, type, manufacturer</li><li>fct_orders — one row per order, aggregated totals</li><li>fct_order_items — one row per line item, fully enriched</li></ul><p>These are stored as <strong>tables</strong> in BigQuery — pre-computed, fast to query, always ready.</p><h3>The Thing That Makes dbt Special: ref()</h3><p>Here’s the magic.</p><p>When I write {{ ref(&#39;stg_orders&#39;) }} in my intermediate model, dbt knows two things automatically:</p><ol><li>It needs to build stg_orders <strong>before</strong> this model</li><li>It should use the correct database path wherever this runs</li></ol><p>This is how dbt builds the DAG — the lineage graph that shows exactly how every model connects to every other model. You can see visually how data flows from raw sources all the way to final marts.</p><p>No documentation needed. No spreadsheet tracking dependencies. The code itself is the documentation.</p><h3>Why This Architecture Actually Matters</h3><p>The first time a column name changed in the raw source, I understood why this matters.</p><p>In the old world — one giant query — I’d have to hunt through hundreds of lines to find every reference to that column.</p><p>In the dbt world, I updated one staging model. Everything downstream kept working because they reference the staging model, not the raw source.</p><p>One change. One file. Done.</p><p>That’s the power of thinking in layers.</p><h3>What’s Next</h3><p>In Part 3, I’ll tell you about the error that nearly derailed the whole project — and why fixing it actually made everything better.</p><p><em>Follow along for Part 3 → “The CSV Error That Made My dbt Project Better”</em></p><p><em>Jaya Krishna Medimpudi <br>GitHub: github.com/SunDevil88 | LinkedIn: linkedin.com/in/medimpudi88</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e805c8925f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The CSV Error That Made My dbt Project Better]]></title>
            <link>https://jayakrishnamedimpudi.medium.com/the-csv-error-that-made-my-dbt-project-better-b9a3170f7b53?source=rss-6f278f0134fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9a3170f7b53</guid>
            <category><![CDATA[analytics-engineering]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[dbt]]></category>
            <dc:creator><![CDATA[Jaya Krishna Medimpudi]]></dc:creator>
            <pubDate>Sat, 02 May 2026 19:36:58 GMT</pubDate>
            <atom:updated>2026-05-02T19:36:58.379Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oSmpaBBBXTELp9V3W9yS5g.png" /></figure><p><em>Part 3 of 4 — Building My First Production-Style dbt Project</em></p><p>My original plan was clean and simple.</p><p>Use Google’s public TPC-H dataset — a classic benchmark that simulates a wholesale supply chain business. It lives in BigQuery’s public data library. Free. Pre-loaded. Ready to query.</p><p>I wrote my first staging model, hit run, and got this:</p><pre>Error 403: Access Denied: Table bigquery-public-data:tpch.orders<br>User does not have permission to query this table.</pre><p>Access denied.</p><p>Turns out BigQuery’s sandbox tier doesn’t grant access to public datasets. I’d need to upgrade to a paid account.</p><p>I stared at the error for a minute. Then I did something that turned out to be the best decision of the whole project.</p><h3>I Brought My Own Data</h3><p>Instead of upgrading, I used <strong>dbt seeds.</strong></p><p>Seeds are CSV files you store inside your dbt project. Run dbt seed and dbt loads them directly into your data warehouse as real tables. No external dependencies. No API access. No permissions issues.</p><p>I created five CSV files — one for each table I needed:</p><ul><li>orders.csv</li><li>lineitem.csv</li><li>customer.csv</li><li>supplier.csv</li><li>part.csv</li></ul><p>Dropped them in the seeds/ folder. Ran dbt seed.</p><p>And immediately hit my second error.</p><h3>The Comma Inside the CSV</h3><pre>Arrow error: Csv error: incorrect number of fields for line 3, expected 8 got 9</pre><p>Some of the comment fields in my CSV data had commas in them. Commas. Inside a comma-separated file.</p><p>Classic data problem. The kind that makes you laugh and groan at the same time.</p><p>The fix was simple — strip out the comment columns entirely. They weren’t needed for the analysis anyway.</p><p>Re-ran dbt seed.</p><pre>Pass 5 | Error 0</pre><pre>supplier  ✅<br>part      ✅<br>orders    ✅<br>lineitem  ✅<br>customer  ✅</pre><p>Five green checkmarks. All five tables loaded into BigQuery.</p><p>I actually said “let’s go” out loud to nobody.</p><h3>Why This Made the Project Better</h3><p>Here’s the thing about the access denied error: it forced me into a better solution.</p><p>A project that uses dbt seed is <strong>completely self-contained.</strong> Anyone can clone the repo, run two commands, and have the entire pipeline working from scratch. No Google Cloud permissions needed. No external data access. No setup beyond installing dbt.</p><pre>dbt seed    # loads all 5 tables into BigQuery<br>dbt build   # runs all models + tests</pre><p>That’s it. The whole project in two commands.</p><p>Compare that to a project that depends on a public dataset that might change, move, or require special permissions. Seeds win every time for a portfolio project.</p><p>The error forced a better design. That happens a lot in data work.</p><h3>What dbt Seed Actually Teaches You</h3><p>Seeds are often dismissed as “just for small reference data.” But they demonstrate something important:</p><p>You understand the full dbt project structure. You know where raw data enters the system. You know how to control that entry point. You know how to make a project reproducible.</p><p>That’s not nothing. That’s exactly what a senior analytics engineer cares about.</p><h3>What’s Next</h3><p>In Part 4 — the final part — I’ll tell you about the moment the project stopped feeling like an exercise and started feeling like something I could actually trust.</p><p>That moment was adding tests.</p><p><em>Follow along for Part 4 → “How I Made My Data Pipeline Actually Trustworthy”</em></p><p><em>Jaya Krishna Medimpudi<br>GitHub: github.com/SunDevil88 | LinkedIn: linkedin.com/in/medimpudi88</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9a3170f7b53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Tried to Learn dbt. Here’s What Nobody Told Me.]]></title>
            <link>https://jayakrishnamedimpudi.medium.com/part-1-of-4-my-journey-setting-up-dbt-cloud-bigquery-and-github-from-scratch-2d3edf1d8b18?source=rss-6f278f0134fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d3edf1d8b18</guid>
            <category><![CDATA[dbt]]></category>
            <category><![CDATA[analytics-engineering]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[bigquery-sql]]></category>
            <dc:creator><![CDATA[Jaya Krishna Medimpudi]]></dc:creator>
            <pubDate>Sat, 02 May 2026 19:06:07 GMT</pubDate>
            <atom:updated>2026-05-02T19:27:02.823Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UVTXw63sqih6J7eTTBGp0Q.png" /></figure><h3>I Tried to Learn dbt. Here’s What Nobody Told Me</h3><p><em>Part 1 of 4 — Building My First Production-Style dbt Project</em></p><p>Let me be honest with you.</p><p>I’ve been working with data for a while now. SQL queries, reports, pipelines, data lakes — I’ve touched all of it. But there was always this gap between what I was doing at work and what the analytics engineering community kept talking about.</p><p>dbt.</p><p>Everyone had it in their job descriptions. Every “modern data stack” diagram had it right in the middle. LinkedIn posts, podcasts, tech blogs — dbt was everywhere. And I kept nodding along like I totally knew what it was.</p><p>I didn’t. Not really.</p><p>So one day I decided to stop nodding and actually build something with it. Not a toy tutorial. Not a “hello world” copy-paste. A real, structured, end-to-end project I could put on GitHub and talk about confidently in an interview.</p><p>This is the story of how that went.</p><h3>The First Thing Nobody Tells You</h3><p>When I signed up for dbt Cloud’s free trial and stared at the blank screen, I expected to start writing SQL immediately.</p><p>Instead I hit a wall.</p><p>dbt is not a database. It doesn’t store data. It doesn’t move data. It doesn’t ingest data. All it does is <strong>transform data that already exists somewhere else.</strong></p><p>Which means before I could write a single line of dbt SQL, I needed to answer one question: where is my data going to live?</p><p>The answer was BigQuery — Google’s cloud data warehouse. Free tier. No surprise charges. Perfect.</p><h3>Setting Up BigQuery (The Part That Confused Me)</h3><p>Google Cloud gave me $300 in free credits on signup. No credit card charges when credits run out. For this project I’d use about $0.01 worth of compute. The math worked.</p><p>But connecting dbt to BigQuery wasn’t as simple as typing a password. I needed something called a <strong>service account</strong>.</p><p>Think of a service account as a robot employee. Instead of dbt logging in as you personally, it logs in as this robot that has its own credentials and its own permissions. You create it, give it the right access level, and hand dbt a special JSON key file that proves the robot is who it says it is.</p><p>It sounds complicated. It took about 10 minutes.</p><p>The steps:</p><ol><li>Create a Google Cloud project</li><li>Enable the BigQuery API</li><li>Create a service account called dbt-user with BigQuery Admin role</li><li>Download the JSON key file</li><li>Upload it to dbt Cloud</li></ol><p>Then I clicked <strong>Test Connection.</strong></p><p>Green checkmark. ✅</p><p>That first green checkmark felt better than it had any right to.</p><h3>Connecting GitHub</h3><p>The next thing dbt Cloud asked for was a GitHub repository.</p><p>This is the part most tutorials gloss over but it’s actually one of the most important parts of the whole setup. Your dbt project lives in GitHub. Every model you write, every test you add, every config file — it all gets pushed to GitHub automatically.</p><p>Why does this matter?</p><p>Because your GitHub repo is your portfolio. Every commit is proof that you built something real. Every branch and pull request shows you work like a professional engineer, not someone who just runs scripts and hopes for the best.</p><p>I created a repo called tpch-dbt-showcase, connected it to dbt Cloud, and initialized the project.</p><p>The file explorer filled up with folders: models/, seeds/, macros/, snapshots/, tests/.</p><p>The kitchen was ready. Time to cook.</p><h3>What’s Next</h3><p>In Part 2, I’ll walk through the biggest mindset shift this project forced on me — stopping thinking in raw SQL and starting thinking in <strong>layers</strong>.</p><p>Staging. Intermediate. Marts.</p><p>It sounds simple. It changes everything.</p><p><em>Follow along for Part 2 → “Why I Stopped Writing Raw SQL and Started Thinking in Layers”</em></p><p><em>Jaya Krishna Medimpudi</em><br><em>GitHub: github.com/SunDevil88 | LinkedIn: linkedin.com/in/medimpudi88</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d3edf1d8b18" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>