Add Python sample for restoring multiple deleted BigQuery tables concurrently
Mantenedores costumam responder em até 3 dias
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- Meio dia
- Facilidade para iniciantes
- 15/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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!
- Linguagem predominante
- Jupyter Notebook
- Estrelas
- 8.1k
- Forks
- 6.7k
- Merge médio
- 3d 11h
- PRs com merge (30d)
- 12
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de GoogleCloudPlatform/python-docs-samples
-
run/logging-manual: clarify Artifact Registry setup for deploymentTalvez já em andamento @jungwonenjoyericl assumiu há 6 dias. Abertaapi: run samples
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
GoogleCloudPlatform/python-docs-samples#14633 ·
Mantenedores costumam responder em até 3 dias
-
Developer Knowledge fallback search response is not iterableTalvez já em andamento @aniruddhaadak80 assumiu há 23 dias. Abertasamples
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
GoogleCloudPlatform/python-docs-samples#14609 ·
Mantenedores costumam responder em até 3 dias
-
RAG quickstart entry point passes an unsupported paths argumentTalvez já em andamento @aniruddhaadak80 assumiu há 23 dias. Abertasamples
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
GoogleCloudPlatform/python-docs-samples#14610 ·
Mantenedores costumam responder em até 3 dias
-
Static external IP sample entry point passes invalid keyword argumentsTalvez já em andamento @aniruddhaadak80 assumiu há 23 dias. Abertasamples
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
GoogleCloudPlatform/python-docs-samples#14611 ·
Mantenedores costumam responder em até 3 dias
-
chore(generative_ai) Update model references for generative_ai samplesTalvez já em andamento @XrossFox assumiu há 174 dias. Abertasamples
GoogleCloudPlatform/python-docs-samples#14117 · 1 responsável ·
Mantenedores costumam responder em até 3 dias
Todas as issues de GoogleCloudPlatform/python-docs-samples
Issues semelhantes
-
Update duckdb-simple to 0.3Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
haskell-beam/beam#828 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
redis/redis-vl-python#773 ·
Mantenedores costumam responder em até 5 dias
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
openwatersio/slackwater-ios#736 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
MemberJunction/MJ#5864 ·
Mantenedores costumam responder em até 1 dia