Adam Lopez
11/06/2023, 1:00 PMother column of the elementary_test_results table at test runtime, but I haven't been able to find any documentation about it. Is there some config key I can set that elementary will use in the post-hook to set values in the other column?Idan Shavit
11/06/2023, 4:15 PMAdam Lopez
11/06/2023, 4:36 PMelementary_test_results for all macros) but I'm looking to work around this by pushing granular results to the other field of the elementary_test_results record
the interface looks like this for calling the test_suite:
models:
- name: my_model
tests:
- my_package.test_suiteAdam Lopez
11/06/2023, 4:38 PMelementary_test_results that would be perfect, but I couldn't find a way to do thisIdan Shavit
11/07/2023, 11:59 AMother field is an internal field of elementary and it is not editable by the users,
I can suggest using run_query to execute queries from your tests that can inset data to tables for example:
{% test a_test() %}
TEST
.
.
.
{% set sql_insert_query %}
INSERT .....
{% endset %}
{% do dbt.run_query(sql_insert_query) %}
.
.
.
REST OF TEST
{% endtest %}Adam Lopez
11/07/2023, 1:52 PMelementary_test_results.result_rows field? I've tried setting the failed_result_rows_calc in the config block but the result_rows field stays null