Skip to content

How to test locally

shi yuhang edited this page Dec 14, 2023 · 2 revisions

Assume you want to verify the compatibility of dbt-tidb v1.6.4 and dbt-core 1.6.4. Here is the step-by-step tutorial:

1. Using virtual environments (venv)

cd dbt-tidb
python3 -m venv dbt-env
source dbt-env/bin/activate

2. Install the dbt-tidb v1.6.4

Make sure you are in the correct version of code

git checkout release-1.6 (git checkout v1.6.4)

Install dbt-tidb

pip3 install .

3. Install the dbt-core v1.6.4

 pip3 install dbt-core==1.6.4

4. Test

Test according to the https://docs.pingcap.com/tidbcloud/integrate-tidbcloud-with-dbt

When you use jaffle_shop as an example, don't forget to use dbt-env virtual environments