You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2022/10/13 01:31:49 UTC

[superset] branch master updated: fix: Fix regression introduced in #20893 (#21743)

This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 3936e9ed5f fix: Fix regression introduced in #20893 (#21743)
3936e9ed5f is described below

commit 3936e9ed5fc41272fcd2d46ce847bf97dc1e0249
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Wed Oct 12 18:31:26 2022 -0700

    fix: Fix regression introduced in #20893 (#21743)
---
 superset/views/core.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/superset/views/core.py b/superset/views/core.py
index 1382fbd020..60ce1edfd2 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -1198,7 +1198,10 @@ class Superset(BaseSupersetView):  # pylint: disable=too-many-public-methods
         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()
         }