Skip to content

Commit 96f29dc

Browse files
committed
test_result_rows: add row_index and test_type
1 parent aa95854 commit 96f29dc

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

dbt-data-reliability

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Users/itamar/workspace/elementary/dbt-data-reliability

macros/edr/tests/on_run_end/handle_tests_results.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@
202202
{% do result_rows.append({
203203
"elementary_test_results_id": test_result.id,
204204
"detected_at": test_result.detected_at,
205-
"result_row": result_row
205+
"result_row": result_row,
206+
"row_index": loop.index,
207+
"test_type": test_result.test_type
206208
}) %}
207209
{% endfor %}
208210
{% endif %}

models/edr/run_results/test_result_rows.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@
2020
('result_row', 'long_string'),
2121
('detected_at','timestamp'),
2222
('created_at','timestamp'),
23+
('row_index','int'),
24+
('test_type','string'),
2325
]) }}

0 commit comments

Comments
 (0)