8 lines
331 B
SQL
8 lines
331 B
SQL
-- Fails when the serving mart is EMPTY.
|
|
--
|
|
-- Without this, every column test passes trivially over zero rows and the
|
|
-- whole suite reports green while the pipeline is dead — the same false green
|
|
-- BI-P025's NativeQualityProvider refuses.
|
|
select 1 as empty_mart
|
|
having (select count(*) from {{ ref('mart_sales_daily') }}) = 0
|