Skip to content

Commit

Permalink
Fix(motherduck): filter on catalog name in DuckDB _get_data_objects q…
Browse files Browse the repository at this point in the history
…uery (TobikoData#2699)
  • Loading branch information
treysp authored May 29, 2024
1 parent aa3ee94 commit 71fdbe4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sqlmesh/core/engine_adapter/duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ def _get_data_objects(
.as_("type"),
)
.from_(exp.to_table("information_schema.tables"))
.where(exp.column("table_schema").eq(schema_name))
.where(
exp.column("table_catalog").eq(catalog), exp.column("table_schema").eq(schema_name)
)
)
if object_names:
query = query.where(exp.column("table_name").isin(*object_names))
Expand Down

0 comments on commit 71fdbe4

Please sign in to comment.