Skip to content

Commit

Permalink
Add index on created_at test_result_rows and remove backfill post hook
Browse files Browse the repository at this point in the history
  • Loading branch information
noaKurman committed Mar 13, 2024
1 parent 8860678 commit 1adea52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 37 deletions.
36 changes: 0 additions & 36 deletions macros/edr/tests/test_utils/backfill_result_rows.sql

This file was deleted.

4 changes: 3 additions & 1 deletion models/edr/run_results/test_result_rows.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
materialized = 'incremental',
unique_key = 'elementary_test_results_id',
on_schema_change = 'append_new_columns',
indexes=[ -- indexes are not supported in all warehouses, relevant to postgres only
{'columns': ['created_at']},
],
full_refresh=elementary.get_config_var('elementary_full_refresh'),
post_hook='{{ elementary.backfill_result_rows() }}',
meta={
"timestamp_column": "created_at",
"prev_timestamp_column": "detected_at",
Expand Down

0 comments on commit 1adea52

Please sign in to comment.