Root cause fix applied to upstream model {{ cascade_root.dbt_model_name }}
This issue is expected to resolve after the upstream fix takes effect. The solution below was generated for the root cause model.
{% elif cascade_pending %}Solution pending — Governor identified {{ cascade_root.dbt_model_name }} as the root cause
A solution is being generated for the upstream model. This downstream issue is expected to resolve after the upstream fix is applied.
{% endif %} {% if cascade_root.status == 'clearing' and cascade_root.clearing_until %}Clearing until {{ cascade_root.clearing_until | timeago }}
{% endif %} View root cause opportunity →Recommendation
{{ opportunity.dbt_model }}Type
{{ opportunity.type | replace('_', ' ') }}
Observed Cost
{% if opportunity.query_cost_per_run is not none %} {{ opportunity.query_cost_per_run | format_usd }} {% else %} {{ opportunity.cost_estimate }} {% endif %}
{% if opportunity.possible_savings_value is not none %}{{ opportunity.possible_savings_label }}{% else %}Recommendation State{% endif %}
{% if opportunity.possible_savings_value is not none %} ~{{ opportunity.possible_savings_value | format_usd }} {% elif pr_record %} PR Open {% elif has_solutions %} Ready {% elif solution_generating %} In progress {% else %} Pending {% endif %}
{% if opportunity.possible_savings_source_label %}Occurrences
{{ opportunity.occurrence_count or 0 }}
Clearing — Changes Under Evaluation
This opportunity is in clearing state. {% if clearing_pr_record %} The following pull request was merged and its cost impact is being evaluated: {% else %} A previously merged change is being evaluated for cost impact. {% endif %} New solutions will not be generated until the clearing period ends{% if opportunity.clearing_until %} on {{ opportunity.clearing_until.strftime('%d %b %Y') }}{% endif %}.
{% if clearing_pr_record %} PR #{{ clearing_pr_record.pr_number }} — {{ clearing_pr_record.repository.split('/')[-1] }} → {% elif opportunity.clearing_pr_number %}PR #{{ opportunity.clearing_pr_number }} in {{ opportunity.clearing_repository }}
{% endif %}Prepared Action
Governor prepared a deterministic BigQuery billing change for this dataset. Run the command below to switch the dataset to physical billing.
ALTER SCHEMA `{{ ev.dataset|default(opportunity.affected_table) }}`
SET OPTIONS (
storage_billing_model = 'PHYSICAL'
);
Generated Solution
{% for sol in solutions %}Generated Solution
No solution generated yet.
Action Workflow
Detection complete
Governor detected this opportunity on {{ opportunity.created_at }}.
{% if opportunity.type == 'storage_billing_optimization' %}Action prepared{% else %}Generate fix{% endif %}
{% if opportunity.type == 'storage_billing_optimization' %} Deterministic SQL action is ready to run. {% elif has_solutions %} Governor has produced a solution version for review. {% elif solution_generating %} Current status: {{ solution_job_status | replace('_', ' ') }}. {% else %} No generated solution exists yet. {% endif %}
Validation
{% if opportunity.type == 'storage_billing_optimization' %} Storage-billing recommendations use deterministic action text. {% elif has_solutions and solutions[0].trust_tier %} Latest solution is marked {{ solutions[0].trust_tier | replace('_', ' ') | title }}. {% elif solution_generating %} Validation will run after generation finishes. {% else %} Validation will appear once a solution exists. {% endif %}
Review / PR
{% if pr_record %} Pull request is open and linked below. {% elif has_solutions and opportunity.type != 'storage_billing_optimization' %} Ready for human review and optional PR creation. {% else %} No PR activity yet. {% endif %}
Recommendation Summary
Affected target
{% if opportunity.dbt_model != '—' %} {{ opportunity.dbt_model }} {% else %} {{ opportunity.affected_table }} {% endif %}
Table reference
{{ opportunity.affected_table }}
Status
{{ opportunity.status | replace('_', ' ') | title }}
Monthly projection
{{ opportunity.workload_estimate.monthly_projection | format_usd }}
Why This Was Flagged
{% if opportunity.workload_estimate and opportunity.workload_estimate.confidence %} {{ opportunity.workload_estimate.confidence | title }} {% endif %}{{ opportunity.explanation }}
{% endif %} {% if opportunity.workload_estimate %}Jobs Analyzed
{{ opportunity.workload_estimate.jobs_analyzed }}
Jobs With Filters
{{ opportunity.workload_estimate.jobs_with_filters }}
Filter Coverage
{{ "%.0f"|format(opportunity.workload_estimate.filter_coverage_pct) }}%
Recommendation Type
{{ opportunity.workload_estimate.recommendation_type | replace('_', ' ') | title }}
Storage Billing Analysis
Current Billing
{% with billing_model=ev.current_billing_model|default('LOGICAL') %} {% include "components/storage_billing_badge.html" %} {% endwith %}
Tables
{{ ev.table_count|default(1) }}
Compression Ratio
{{ "%.1f"|format(ev.compression_ratio|default(0)) }}x
Dataset Size
{% set tbl_gb = ev.total_logical_gb|default(0) %} {% if tbl_gb >= 1000 %}{{ "%.1f"|format(tbl_gb / 1000) }} TB{% elif tbl_gb >= 1 %}{{ "%.1f"|format(tbl_gb) }} GB{% else %}{{ "%.0f"|format(tbl_gb * 1000) }} MB{% endif %}
Estimated Savings
{{ ev.monthly_savings|default(0) | format_usd }}/mo
| Logical | Physical | |
|---|---|---|
| Monthly Cost | {{ ev.logical_cost_monthly|default(0) | format_usd }} | {{ ev.physical_cost_monthly|default(0) | format_usd }} |
| Savings | {{ ev.monthly_savings|default(0) | format_usd }}/mo ({{ "%.0f"|format(ev.savings_percentage|default(0)) }}%) |
Recommended Action
Run the following SQL in BigQuery to switch the dataset to physical billing.
ALTER SCHEMA `{{ ev.dataset|default(opportunity.affected_table) }}`
SET OPTIONS (
storage_billing_model = 'PHYSICAL'
);
Evidence Snapshot
{{ key }}
{{ value | string | truncate(120, True, '...') }}
{{ value | tojson(indent=2) }}
{% else %}
{{ value }}
{% endif %}Pull Request
{{ pr_record.branch_name }}
{% if pr_record.created_at %}
{{ pr_record.created_at }}
{% endif %}
Post-Merge Cost Verification
{% if verified_savings_data.status == 'confirmed' %} Confirmed {% elif verified_savings_data.status == 'negative' %} Negative {% elif verified_savings_data.status == 'collecting' %} Collecting {% elif verified_savings_data.status == 'pending' %} Pending {% elif verified_savings_data.status == 'insufficient_data' %} Insufficient Data {% endif %}Waiting for post-merge job data to accumulate. Savings will be calculated automatically.
{% elif verified_savings_data.status == 'collecting' %}Collecting post-merge job data. Results will appear once enough jobs have run.
{% elif verified_savings_data.status == 'insufficient_data' %}Not enough job data in the measurement windows to calculate verified savings.
{% else %}Pre-Merge Avg
{{ verified_savings_data.pre_merge_avg_cost | format_usd }}
Post-Merge Avg
{{ verified_savings_data.post_merge_avg_cost | format_usd }}
Verified Savings
{% if verified_savings_data.verified_savings is not none %} {{ verified_savings_data.verified_savings | format_usd }} {% else %} — {% endif %}