Skip to content

Conversation

@Andres-Ayala1
Copy link

Created a script to extract DDL's and schemas of BQ tables in bulk.

@afleisc afleisc self-assigned this Dec 18, 2025

try:
# Run command and capture output
result = subprocess.run(cmd, capture_output=True, text=True, check=True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of calling a subprocess to run bq tool, use the python BigQuery client library to do everything in Python. Also use the python threading library to add parallelism to your exports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants