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

Latest commit

 

History

80 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

仓库 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 设置 for the VS Code Extension Update 设置

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 个人资料s 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 设置

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

关于

Datafold VSCode Extension: Data Diffing is Easy Now

Topics

Resources

Stars

1 star

关注者

0 watching

复刻s

贡献者