BigQuery Cost Estimator

Dynamically replace BigQuery's query size estimate (GB) with the estimated cost in USD.

作者
Dann Berg
今日安裝
0
安裝總數
1
評價
0 0 0
版本
1.7
建立日期
2025-01-30
更新日期
2025-01-30
尺寸
1.6 KB
授權條款
MIT
腳本執行於

BigQuery Cost Estimator

This script dynamically replaces BigQuery’s "This query will process X GB when run" text with an estimated cost based on Google’s on-demand pricing ($6.25 per TB).

✅ Features

  • 🚀 Works dynamically as you type queries.
  • 🔍 Uses MutationObserver to detect changes.
  • No external dependencies; lightweight and fast.

💡 How to Use

  1. Install a Userscript Manager:
  2. Click "Install" on this script.
  3. Open Google BigQuery and enter a query.
  4. The estimated cost will replace the GB value automatically.

📌 Example Calculation:

Query processes: 11.37 GB
Cost = (11.37 GB ÷ 1024) × 6.25
Cost = $0.07

BigQuery now displays:

"Estimated cost: $0.07"


📜 License

This script is licensed under the MIT License – feel free to use, modify, and contribute!


💡 Questions or Issues? Report an issue 🚀

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址