{% if _dataset %}{{ _dataset }}.{% endif %}{{ row.dbt_model_name or _table }}{% endset %}
{% call header_card(_title) %}
{% set _workload_label = "build" if row.query_workload_kind == "build" else ("consumption" if row.query_workload_kind == "consumption" else none) %}
{% set _reservation_id = latest_job.reservation_id if (latest_job and latest_job.reservation_id) else (job.reservation_id if (job and job.reservation_id) else "") %}
{{ header_summary }}
{% endcall %} {# "What changed" signal for the current query version - the same chips the /jobs version cards show. A resolved rule (e.g. "cross join unaggregated resolved") is good news: it fired on an earlier version and the current query no longer triggers it. This is why the suggestion count can be 0 here while /jobs' history shows the rule - it was already fixed. #} {% if resolved_rules_current or new_rules_current %}Cost
{{ row.query_cost_value | format_usd }}
{% if _cost_meta %}{% endif %}Bytes processed
{{ (_agg_bytes | format_bytes) if _agg_bytes is not none else "-" }}
{% if _bytes_meta %}{% endif %}Slot time
{{ ("%.1f" | format((_agg_slot_ms or 0) / 3600000) ~ " hrs") if _agg_slot_ms is not none else "-" }}
{% if _slot_meta %}{% endif %}Executions
{{ "{:,}".format(_runs) }}
{{ issue.evidence_text }}
Action
{{ issue.action_text }}
Impact
{{ issue.impact_text }}
{{ imp.explanation }}
{% elif imp.diff_lines or imp.before_content %} {% endif %} {% if imp.rollback %}{{ imp.rollback }}
{{ job_lookup_sql }}