Created
July 17, 2023 10:09
-
-
Save OatmealLick/14c0b81ca3acab8c513cc09a01a5edaf to your computer and use it in GitHub Desktop.
Create mappings
This file contains 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
mappings_table_id = f"astrafy-gke.data_product_mappings_{self.env}.data_product_to_public_models" | |
query_job = self.bigquery_client.query(f"SELECT data_product, public_models FROM {mappings_table_id}") | |
mappings = {r["data_product"]: r["public_models"] for r in query_job} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment