Shay Misgav
03/21/2024, 1:40 PMSELECT country, SUM(revenue) as total_revenue
FROM countries_orders
WHERE DATE(created_at) = CURRENT_DATE()
GROUP BY 1
HAVING total_revenue < 100
so if in the last hour one or more countries had total_revenue < 100 - send a list of those countriesEuan Blackledge
03/21/2024, 2:51 PMaccepted_values of nothing, tag the test with something, generate the report, send the report using the tag you’ve assigned for this test.
Alternatively, you could just make this a test, run the test, generate the report, send the report using the tagShay Misgav
03/24/2024, 1:13 PMaccepted_values solution might work.
about the other solution, wdya mean by "make this a test"? like creating a test with custom SQL ?Euan Blackledge
03/25/2024, 8:26 AMShay Misgav
03/25/2024, 3:46 PM/tests folder and DBT runs them properly
can i somehow look at the failures on elementary dashboard?
i didn't find it as this test is not related to a specific table but more of a singular custom test that envolves few tablesEuan Blackledge
03/25/2024, 4:12 PM