{% if _dataset %}{{ _dataset }}.{% endif %}{{ row.dbt_model_name or _table }}{% endset %}
{% call header_card(_title) %}
{# Eyebrow parallels opportunities/detail. Title-row chips carry only
context that isn't restated below (dbt origin, author filter-pivot).
Error-category + suggestion counts removed - they appear in the stat
strip and in the section headings below. #}
Failure detail
{% if row.dbt_model_name %}
{{ signal_chip("dbt", color="emerald", title="dbt-originated") }}
{% endif %}
{% if row.author_email %}
{{ row.author_email }}
{% endif %}
{% endcall %}
{# Stat strip - three operational numbers for the failed query
group: Failed executions / Bytes / Slot wasted. The previous
fourth card listed every error-category rule name as plain
text, duplicating the "Errors observed" section directly below.
Dropped to three; each remaining card carries more weight. #}
{{ issue.row.explanation }}
{% if issue.rule_meta and issue.rule_meta.description %}{{ issue.rule_meta.description }}
{% endif %}See Available improvements below - audit found AST rewrites that may be the underlying fix.
{% else %}No deterministic AST rewrite is available for this query. Inspect the failed SQL below and the BigQuery console for the failed job ID.
{% endif %}{{ imp.explanation }}
{% endif %} {% if imp.diff_lines or imp.before_content %}No diff available - template did not produce a change.
{% endif %}{{ imp.rollback }}