Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[FEATURE]: Pre-execution cost firewall for warehouse queries

オープン
#906 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
google-cloud, sql, typescript

調査の方向性

sql_executeエントリポイントから開始し、既存のガバナンス設定とsql_optimizeツールを確認します。BigQueryのdry-run見積もり動作を確認し、提案されている予算フィールドと確認フローをデフォルトで無効にする要件にどのように適合させるべきかを判断します。予算超過クエリがガードされ、未サポートのウェアハウスには影響しない状態になれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Problem

The agent can run an analytical query that scans terabytes. e.g. SELECT * FROM events and incur a large warehouse bill before anyone realizes. Today there is no pre-execution cost estimate or budget guardrail in sql_execute. The FinOps tooling that exists is all historical (analyzing spend after the fact), not preventive.

Proposed enhancement

An opt-in cost firewall that estimates a query's scan cost before it runs and asks for confirmation when it exceeds a configured budget:

  • Estimate via warehouse-native dry-run where available (BigQuery dryRun returns exact bytes processed for free; no execution, no cost).
  • New governance config: max_query_cost_usd, max_bytes_scanned, cost_per_tib_usd.
  • When a query is over budget, prompt the user (with a hint to try sql_optimize first).
  • Disabled by default; warehouses without estimation support are unaffected (the guard fails open).
Benefits

Cost control is core to the data-engineering workflow. A pre-flight guardrail turns a surprise $40 query into approve, or optimize first without changing behavior for anyone who doesn't set a budget.

Notes

I have an implementation ready (BigQuery estimator + the default-off guard framework) and can open a PR referencing this issue. The estimator is designed to extend to other warehouses (Snowflake via EXPLAIN, etc.).

主要言語
TypeScript
スター
815
フォーク
135
平均マージ
1日 11時間
マージ済み PR(30日)
55

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AltimateAI/altimate-code のほかの issue

AltimateAI/altimate-code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。