We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c4217f + 0428a9b commit 44f8f8aCopy full SHA for 44f8f8a
elementary/monitor/dbt_project/macros/get_result_rows_agate.sql
@@ -9,5 +9,9 @@
9
and elementary_test_results_id in ({{ valid_ids_query }})
10
{% endif %}
11
{% endset %}
12
- {% do return(elementary.run_query(query).group_by("elementary_test_results_id")) %}
+ {% set res = elementary.run_query(query) %}
13
+ {% if not res %}
14
+ {% do return({}) %}
15
+ {% endif %}
16
+ {% do return(res.group_by("elementary_test_results_id")) %}
17
{% endmacro %}
0 commit comments