Add Python sample for restoring multiple deleted BigQuery tables concurrently
メンテナーはふだん 3 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 15/100
調査の方向性
The work is a Python sample that queries INFORMATION_SCHEMA.TABLE_STORAGE for recently deleted tables, computes time-travel timestamps, and restores them concurrently with a ThreadPoolExecutor. Pull request #14642 is already open against this issue, so review or coordinate on that PR rather than starting a parallel implementation. Done means the sample runs against a test dataset and restores the tables to the destination dataset.
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
Yes. Customers often need to restore multiple deleted BigQuery tables at once (e.g., after an accidental bulk deletion or dropping a dataset). Currently, the public documentation only provides examples for restoring a single table at a time, leaving users to figure out how to write their own concurrent restoration logic using time travel decorators and the INFORMATION_SCHEMA.
Describe the solution you'd like.
Add a Python sample script demonstrating how to programmatically query INFORMATION_SCHEMA.TABLE_STORAGE to find all recently deleted tables in a dataset, calculate their time travel timestamps, and restore them concurrently to a new destination dataset using the BigQuery Python client and a ThreadPoolExecutor.
This sample will be surfaced in the public BigQuery documentation via an include tag to help customers perform bulk restorations.
Describe alternatives you've considered.
The alternative is requiring users to manually restore tables one-by-one via the bq CLI or write their own custom bulk-restore scripts from scratch, which is error-prone and tedious for large datasets.
Additional context.
This sample was explicitly requested by the BigQuery tech writing team to be surfaced in the public documentation for recovering deleted tables (Internal tracking: cl/998554059, b/533404964).
I already have the code prepared and will open a Pull Request linking to this issue shortly!
- 主要言語
- Jupyter Notebook
- スター
- 8.1k
- フォーク
- 6.7k
- 平均マージ
- 3日 11時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GoogleCloudPlatform/python-docs-samples のほかの issue
-
run/logging-manual: clarify Artifact Registry setup for deployment対応中かも @jungwonenjoyericl が 4 日前に担当しました。 オープンapi: run samples
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
GoogleCloudPlatform/python-docs-samples#14633 ·
メンテナーはふだん 3 日以内に返信
-
Developer Knowledge fallback search response is not iterable対応中かも @aniruddhaadak80 が 22 日前に担当しました。 オープンsamples
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
GoogleCloudPlatform/python-docs-samples#14609 ·
メンテナーはふだん 3 日以内に返信
-
RAG quickstart entry point passes an unsupported paths argument対応中かも @aniruddhaadak80 が 22 日前に担当しました。 オープンsamples
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
GoogleCloudPlatform/python-docs-samples#14610 ·
メンテナーはふだん 3 日以内に返信
-
Static external IP sample entry point passes invalid keyword arguments対応中かも @aniruddhaadak80 が 22 日前に担当しました。 オープンsamples
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
GoogleCloudPlatform/python-docs-samples#14611 ·
メンテナーはふだん 3 日以内に返信
-
chore(generative_ai) Update model references for generative_ai samples対応中かも @XrossFox が 172 日前に担当しました。 オープンsamples
GoogleCloudPlatform/python-docs-samples#14117 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
GoogleCloudPlatform/python-docs-samples の issue をすべて見る
似ている issue
-
area/indexing bug package/core triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
Add: AVA Mediaオープンchannels:add check:failed
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
omegaup/omegaup#10353 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
OpenIntegrationEngine/engine#496 ·
メンテナーはふだん 1 日以内に返信