Skip to content

Instantly share code, notes, and snippets.

@matepaavo
Created January 14, 2019 19:13
Show Gist options
  • Select an option

  • Save matepaavo/a3c33c615f6d7438db4f5170699e2111 to your computer and use it in GitHub Desktop.

Select an option

Save matepaavo/a3c33c615f6d7438db4f5170699e2111 to your computer and use it in GitHub Desktop.
bq-utils-copy-example
from google.cloud import bigquery
from bqutils.bigquery_description_manager import BigQueryDescriptionManager
bq_client = bigquery.Client()
description_manager = BigQueryDescriptionManager(bq_client)
source_table_id = 'your_project.your_dataset.source_table'
target_table_id = 'your_project.other_dataset.target_view'
description_manager.copy_field_descriptions(source_table_id, target_table_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment