Skip to content

Instantly share code, notes, and snippets.

@OatmealLick
Created July 17, 2023 10:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save OatmealLick/14c0b81ca3acab8c513cc09a01a5edaf to your computer and use it in GitHub Desktop.
Create mappings
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