Created
January 14, 2019 19:13
-
-
Save matepaavo/a3c33c615f6d7438db4f5170699e2111 to your computer and use it in GitHub Desktop.
bq-utils-copy-example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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