Skip to content

Commit

Permalink
Metabase client fix for no schemas in BigQuery (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
gouline authored Jul 23, 2021
1 parent ff8e145 commit 04f9b0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dbtmetabase/metabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@ def build_metadata_lookups(
params=dict(include_hidden=True),
)
for table in metadata.get("tables", []):
table_schema = table.get("schema", "public").upper()
table_schema = table.get("schema")
table_schema = table_schema.upper() if table_schema else "PUBLIC"
table_name = table["name"].upper()

if schemas_to_exclude:
Expand Down

0 comments on commit 04f9b0f

Please sign in to comment.