From 307841e0be3c078257b9973fe3dfef94febf0893 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Wed, 3 Apr 2024 07:53:23 -0600 Subject: [PATCH] Update example for `fail_calc` --- website/docs/reference/resource-configs/fail_calc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/resource-configs/fail_calc.md b/website/docs/reference/resource-configs/fail_calc.md index 6ee8e5f71ce..e78f7939cda 100644 --- a/website/docs/reference/resource-configs/fail_calc.md +++ b/website/docs/reference/resource-configs/fail_calc.md @@ -37,7 +37,7 @@ models: tests: - unique: config: - fail_calc: "sum(n_records)" + fail_calc: "case when count(*) > 0 then sum(n_records) else 0 end" ```