Snowflake BOOLAND_AGG can return true even when a pipeline check has no result
A passing result for every reported check is not the same as a passing result for every required check. Give the analytics agent both the verdict and the coverage.
An analytics agent asked “Did all of last night’s checks pass?” can get TRUE from Snowflake and still have a check it cannot account for. Snowflake’s BOOLAND_AGG reference defines the aggregate over the non-null Boolean values in the group. TRUE, TRUE, NULL therefore returns TRUE. It answers “Did all the reported Boolean results pass?” It does not answer “Did every required check run and pass?”
Give the answer a denominator
Take a hypothetical nightly load that requires three checks: freshness, uniqueness, and row-count reconciliation. Freshness and uniqueness report TRUE; reconciliation has no result. The output to show an operator is “Two of three required checks passed; reconciliation has no result,” not “All checks passed.” If reconciliation later reports FALSE, say it failed. If all three results are null, Snowflake returns NULL, not TRUE or FALSE; the appropriate message in this example is “No results reported.” The behavior follows the documented aggregate rules; the checks are illustrative.
For a completeness check, start with the list of required checks for the run, not just the rows that arrived. Match that list to one authoritative result per check per run. Otherwise, a check that produced no row at all never reaches the aggregate. Return the expected count, the count with known outcomes, and the names of checks without an outcome alongside the Boolean verdict. Define how retries are resolved before counting results so one retried check does not stand in for two required checks.
Test what the agent says, not just what the query returns
Use a small fixture with four cases: three passes; two passes and one explicit null; two passes and one entirely missing result row; and two passes and one failure. The middle two cases should both produce an incomplete verdict in the answer, even though the known results all passed. Include an all-null case to make sure the answer does not turn “no results” into either success or failure. The acceptance criterion is simple: the agent can say “all required checks passed” only when every required check has a known passing result.
sources
- Snowflake SQL reference: BOOLAND_AGGdocs.snowflake.com
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026