Skip to content

Commit c08644e

Browse files
committed
fix: use SQL boolean literals instead of string literals in deadline check
- Replace string literals 'true'/'false' with actual SQL boolean literals TRUE/FALSE - Use Jinja conditionals to output unquoted boolean values - Fixes incorrect evaluation where string literals always evaluated to truthy
1 parent 45c9648 commit c08644e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

macros/edr/tests/test_execution_sla.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,11 @@
216216
case
217217
when sla_status = 'MET_SLA' then false
218218
{# If deadline hasn't passed, don't fail yet #}
219-
when not {{ 'true' if deadline_passed else 'false' }} then false
219+
{% if deadline_passed %}
220+
when not TRUE then false
221+
{% else %}
222+
when not FALSE then false
223+
{% endif %}
220224
else true
221225
end as is_failure,
222226
case

0 commit comments

Comments
 (0)