Skip to content

Commit

Permalink
fix (#67)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Moy de Vitry <[email protected]>
  • Loading branch information
mmmatthew and mmdv-pallon authored Oct 7, 2021
1 parent f72e9b2 commit e7c7832
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dbtmetabase/metabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,9 @@ def build_metadata_lookups(
)
for table in metadata.get("tables", []):
table_schema = table.get("schema")
table_schema = table_schema.upper() if table_schema else "PUBLIC"
# table["schema"] is null for bigquery datasets
bigquery_schema = metadata.get("details", {}).get("dataset-id")
table_schema = (table_schema or bigquery_schema or "public").upper()
table_name = table["name"].upper()

if schemas_to_exclude:
Expand Down

0 comments on commit e7c7832

Please sign in to comment.