Skip to content
Vibhrav Jha.Let’s talk
All projectsData Engineering

Multi-Source ELT Pipeline

A fact table whose joins preserve the meaning of a trade

My contributionSource integration, SQL transformations and analytical modeling.

FieldData Engineering

View repository

Academic project

Multi-Source ELT Pipeline project image

The work
behind the interface.

Produced a trade-analysis fact table by cleaning three source types through six dbt staging models, with point-in-time price joins and guarded profit calculations.

  • Airbyte
  • Snowflake
  • dbt
  • SQL

The result

A fact table with cleaned ticker/date combinations, guarded profit calculations and traceable source transformations.

The problem

Built an Airbyte, Snowflake and dbt workflow joining survey, trade and price data for desk-level analysis.

A decision worth examining

Use six staging models and point-in-time joins before calculating trade values and profit rates.

Read the README.

View original README
READMEArchitecture, setup and usage

Multi-Source ELT Pipeline: Airbyte → Snowflake → dbt

An ELT pipeline that brings three sources into Snowflake: a Google Sheets survey, trading-desk CSV files, and Snowflake Marketplace stock and FX time series. dbt then models them into staging views and a trade-level profit fact table, and the results are analyzed in Python.

Architecture

flowchart LR
    GS[Google Sheets<br/>survey responses] -->|Airbyte| SURVEY[(SURVEY_DATABASE<br/>.SURVEY_SCHEMA)]
    CSV[trading_books.csv<br/>weights_table.csv] -->|Airbyte| STOCK[(STOCK_DB<br/>.STOCK_SCHEMA)]
    MKT[Snowflake Marketplace<br/>stock prices · FX rates] --> STG
    SURVEY --> STG[dbt staging views]
    STOCK --> STG
    STG --> FACT[dbt mart<br/>fact_tab_trading]
    FACT --> NB[Python analysis<br/>pandas · matplotlib]
    STG --> NB

dbt models

ModelTypePurpose
transform_surveyviewRenames long survey-question columns to short snake_case fields
staging_valid_stock_tickersviewDistinct ticker/date pairs from Equity Desk trades
staging_valid_fx_tickersviewDistinct ticker/date pairs from FX Desk trades
staging_valid_stock_infoviewJoins equity trades to Marketplace daily highs and lows
staging_valid_fx_infoviewJoins FX trade dates to EUR/USD and GBP/USD rates
staging_buy_sell_jointviewPairs each buy with its sell by trader and trade date
fact_tab_tradingtableTrade-level BUY_MONEY, SELL_MONEY, and PROFIT

Sources are declared in dbt_pipeline/models/schema.yml.

Results

DeskTotal profitProfit rate
FX Desk5,000.000.63%
Equity Desk2,718.751.27%

The FX desk earns more in absolute terms, but the Equity desk turns its capital over at twice the rate. The notebook also profiles the survey data (standing, preferred LLM, VR-headset ownership vs. LLM preference, and so on) with SQL GROUP BY, window-function ranking, and matplotlib charts.

Tech stack

Snowflake · Airbyte Cloud · dbt (dbt-snowflake, dbt-utils) · Python · snowflake-connector-python · pandas · matplotlib

Project structure

Snowflake-dbt-ELT-Pipeline/
├── elt_pipeline_analysis.ipynb     # setup walkthrough, validation queries, analysis
├── dbt_pipeline/
│   ├── dbt_project.yml
│   ├── packages.yml
│   ├── profiles.example.yml        # copy to ~/.dbt/profiles.yml
│   └── models/
│       ├── schema.yml              # source declarations
│       ├── staging/                # staging views
│       └── marts/                  # fact table
└── requirements.txt

Running locally

pip install -r requirements.txt

export SNOWFLAKE_ACCOUNT=<account_identifier>
export SNOWFLAKE_USER=<user>
export SNOWFLAKE_PASSWORD=<password>

cp dbt_pipeline/profiles.example.yml ~/.dbt/profiles.yml
cd dbt_pipeline
dbt deps
dbt debug
dbt run                     # survey models (target: dev)
dbt run --target stock_db   # trading models

The Snowflake setup SQL (warehouse, databases, role, grants, schemas) is in the notebook's setup section. Airbyte connections are configured in the Airbyte Cloud UI.

Privacy: the survey table contains respondent emails, so the notebook's row-level survey outputs are cleared and no raw survey data is committed.


Date finished: April 18, 2026

GCP Geospatial Pipeline

  1. Aranyaka wildlife-image application interface

    Fullstack

    Aranyaka

  2. DermaNet hackathon prototype showing classification output and a generated explanation

    ML & AI

    DermaNet

  3. AI-generated concept illustration of source documents connected to retrieved evidence and an answer

    ML & AI

    Private-Data RAG

  4. Before It Breaks dashboard separating real weather from synthetic equipment telemetry and estimated costs

    ML & AI

    Before It Breaks

  5. Architecture diagram of simulated stock records flowing through Kafka to HDFS

    Distributed Systems

    Stock Streaming Engine

  6. Vyaya dashboard with clearly labeled synthetic demonstration data

    Fullstack

    Vyaya

  7. Study assistant interface with retrieved source context

    ML & AI

    Fine-Tuning vs. RAG

  8. Architecture diagram of NOAA data, a Cassandra cluster and a query service

    Distributed Systems

    Distributed Weather Data System

  9. Distributed Property Lookup Service project image

    Distributed Systems

    Distributed Property Lookup Service

  10. Architecture diagram connecting MySQL, a gRPC service and HDFS storage

    Distributed Systems

    HDFS & SQL Pipeline

  11. Architecture diagram of Spark processing, SQL and analysis

    Distributed Systems

    Spark Analytics

  12. Multi-Source ELT Pipeline project image

    Data EngineeringViewing

    Multi-Source ELT Pipeline

  13. Wisconsin schools in their geographic context — explanatory architecture diagram

    Data Engineering

    GCP Geospatial Pipeline

  14. Chinook Music Store SQL Analytics project image

    Data Engineering

    Chinook Music Store SQL Analytics

  15. Yelp Geospatial Analytics project image

    Data Engineering

    Yelp Geospatial Analytics

  16. E-Commerce Semantic Search Engine project image

    Data Engineering

    E-Commerce Semantic Search Engine

  17. Retail Sales Forecasting project image

    ML & AI

    Retail Sales Forecasting

  18. Making tool dependencies inspectable — explanatory architecture diagram

    ML & AI

    AI Agent Tool Dependency Graph

  19. From public records to operational questions — explanatory architecture diagram

    Data Engineering

    Palantir Foundry and AIP Build Challenge

  20. StudyFlow study-session dashboard

    Fullstack

    StudyFlow

  21. Habit Command Center planning dashboard

    Fullstack

    Habit Command Center

  22. Interfaces across web and mobile — explanatory architecture diagram

    Fullstack

    React Web & Mobile

  23. Startup Scout project image

    Fullstack

    Startup Scout

  24. Inventory-Based Recipe Planner project image

    Fullstack

    Inventory-Based Recipe Planner

  25. Concurrent Word Count and Performance Benchmarking project image

    Data Engineering

    Concurrent Word Count

  26. Data structures matched to their assumptions — explanatory architecture diagram

    Computing Foundations

    Algorithm Design

  27. Campus Navigator project image

    Fullstack

    Campus Navigator

  28. i-Songly: Song Management Engine project image

    Fullstack

    i-Songly

  29. An experiment that can resume — explanatory architecture diagram

    ML & AI

    CIFAR-100 with LeNet

  30. Fashion-MNIST Neural Network Classifier project image

    ML & AI

    Fashion-MNIST Classifier

  31. PCA Eigenfaces and Image Reconstruction project image

    ML & AI

    PCA Eigenfaces

  32. Two routes to the same regression objective — explanatory architecture diagram

    ML & AI

    Lake Mendota Ice Regression

  33. Bayesian Language Detection project image

    ML & AI

    Bayesian Language Detection

  34. Explanatory diagram of the video-fingerprint benchmark: 25 sources, 75 transformed variants and 1,875 comparisons.

    ML & AI

    Video-Fingerprint Benchmark

All projects