Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Datafold VSCode Extension: Data Diffing is Easy Now

License

Notifications You must be signed in to change notification settings

datafold/data_diff_demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datafold VS Code Extension Demo: Data Diffs

This is a demo for how to use the Datafold VS Code Extension to compare data between your development and production environments with dbt.

Our team at Datafold built this extension to help data teams move faster and with more confidence when shipping data. We hope you find it useful!

Let's get started!

Copy and paste the below in your terminal to get started with this demo in a single motion.

git clone https://github.com/datafold/data_diff_demo.git # clone this repo
cd data_diff_demo # change into the repo directory
python3 -m venv venv # setup your virtual environment
source venv/bin/activate # activate it
python3 -m pip install --upgrade pip # upgrade pip
python3 -m pip install -r requirements.txt # install dbt and data-diff
source venv/bin/activate # reactivate virtual environment
dbt build # build development datasets
dbt build --target prod # build production datasets
data-diff --dbt # run data-diff CLI to compare development and production datasets

Your terminal should look like this: Install Datafold Extension

Install the VS Code Extension Install Datafold Extension

Update Settings for the VS Code Extension Update Settings

Set your specific settings for the VS Code Extension

Note: set absolute paths to avoid any issues. Your paths will be different than mine and will likely look like the below

dbt Profiles Directory: /Users/<your name>/data_diff_demo

dbt Project Directory: /Users/<your name>/data_diff_demo

Python Path: /Users/<your name>/data_diff_demo/venv/bin/python3

Set Settings

Change a model like customers.sql and run in your terminal: dbt build

Run Data Diff through the Datafold Extension

datafold_diff_button

View the results! datafold_diff_results

About

Datafold VSCode Extension: Data Diffing is Easy Now

Topics

Resources

License

Stars

Watchers

Forks