Skip to content

Commit 5e997a8

Browse files
authored
better data diff docs in crash course (#4437)
1 parent 850181b commit 5e997a8

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docs/examples/sqlmesh_cli_crash_course.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,12 @@ Note: If you run this without making any changes, SQLMesh will prompt you to mak
161161

162162
### Run Data Diff Against Prod
163163

164+
<div style="position: relative; padding-bottom: 56.25%; height: 0;"><iframe src="https://www.loom.com/embed/a3c8beffe46840f38487180f401f0a1c?sid=941a7283-38c8-4527-b5b9-49e68c5b9f0c" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div>
165+
164166
Run data diff against prod. This is a good way to verify the changes are behaving as expected **after** applying them to `dev`.
165167

168+
To make this easier and faster, you can run data diff against all models in the environment impacted by plan changes applied using the `-m '*'` flag example below. No need to specify the model name! Read more about options [here](../guides/tablediff.md).
169+
166170
=== "SQLMesh"
167171

168172
```bash
@@ -173,6 +177,10 @@ Run data diff against prod. This is a good way to verify the changes are behavin
173177
sqlmesh table_diff <environment>:<environment> <model_name> --show-sample
174178
```
175179

180+
```bash
181+
sqlmesh table_diff prod:dev -m '*' --show-sample
182+
```
183+
176184
=== "Tobiko Cloud"
177185

178186
```bash
@@ -183,6 +191,10 @@ Run data diff against prod. This is a good way to verify the changes are behavin
183191
tcloud sqlmesh table_diff <environment>:<environment> <model_name> --show-sample
184192
```
185193

194+
```bash
195+
tcloud sqlmesh table_diff prod:dev -m '*' --show-sample
196+
```
197+
186198
??? "Example Output"
187199
I compare the `prod` and `dev` environments for `sqlmesh_example.full_model`.
188200

0 commit comments

Comments
 (0)