Initial publish of dbt_f2dq (f2dq) package v0.12.1.
Clean package repo for Gitea installs via packages.yml git URL. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{% macro export_tests_history(start_date, end_date, tests_history_path=None) %}
|
||||
{% set tests_history_query %}
|
||||
select
|
||||
table_name,
|
||||
column_name,
|
||||
test_name,
|
||||
run_at,
|
||||
status,
|
||||
execution_time,
|
||||
message,
|
||||
failures_count,
|
||||
failures_json,
|
||||
failures_table,
|
||||
severity,
|
||||
compiled_sql
|
||||
from
|
||||
{{ ref('f2dq_test_history') }}
|
||||
where {{ in_date_window('run_at', start_date, end_date) }}
|
||||
{% endset %}
|
||||
|
||||
{% set query_result = run_query(tests_history_query) %}
|
||||
{% set tests_history_file_path = tests_history_path or 'target/f2dq/tests_history.json' %}
|
||||
{% do query_result.to_json(tests_history_file_path) %}
|
||||
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user