We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 405896c commit 995926dCopy full SHA for 995926d
tests/core/test_table_diff.py
@@ -19,7 +19,7 @@ def test_data_diff(sushi_context):
19
diff = sushi_context.table_diff(
20
source="prod",
21
target="dev",
22
- on=exp.condition("s.customer_id = t.customer_id"),
+ on=exp.condition("s.customer_id = t.customer_id AND s.ds = t.ds"),
23
model_or_snapshot="sushi.customer_revenue_by_day",
24
)
25
@@ -28,6 +28,6 @@ def test_data_diff(sushi_context):
28
assert schema_diff.removed == []
29
30
row_diff = diff.row_diff()
31
- assert row_diff.source_count == 2163
32
- assert row_diff.target_count == 2586
+ assert row_diff.source_count == 123
+ assert row_diff.target_count == 1685
33
assert row_diff.sample.shape == (20, 7)
0 commit comments