{{ job.job_id }}
{# Statement type + workload pills moved here so the stat strip below can dedicate all six cards to numeric cost / bytes / slot data (mirrors the opportunity detail page). #}{{ job.statement_type }} {% if job.workload_kind == "build" %} build {% elif job.workload_kind == "consumption" %} consumption {% endif %} {% if job.is_dbt_originated %} dbt {% else %} other {% endif %} {% if job.cache_hit %} cache hit {% endif %} {# Spec 156 - origin chip mirrors the /opportunities Origin column. ad_hoc renders as muted slate so it doesn't compete with the explicit dbt / build / consumption pills above. #} {% if job.origin_tool and job.origin_tool != 'ad_hoc' %} {{ job.origin_tool | replace('_', ' ') }} {% endif %}
| Rule | Detail | Affected Table | Current Cost |
|---|---|---|---|
| {{ issue.display_name }} |
{% if issue.explanation %}
{{ issue.explanation }} {% else %} - {% endif %} |
{{ issue.affected_table }}
|
{{ issue.current_cost | format_usd }} |
{% for line in job.query.split('\n') %}{{ loop.index }}{{ line }}
{% endfor %}
query_info.performance_insights."
) }}
{{ job.performance_insights | tojson(indent=2) }}