Skip to content

Commit

Permalink
fix: Include database filter when fetching table extra dict
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored Oct 8, 2022
1 parent aef6217 commit 0846b44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,10 @@ def tables( # pylint: disable=no-self-use
extra_dict_by_name = {
table.name: table.extra_dict
for table in (
db.session.query(SqlaTable).filter(SqlaTable.schema == schema_parsed)
db.session.query(SqlaTable).filter(
SqlaTable.database_id == database.id,
SqlaTable.schema == schema_parsed,
)
).all()
}

Expand Down

0 comments on commit 0846b44

Please sign in to comment.