diff --git a/superset/models/sql_lab.py b/superset/models/sql_lab.py index 038e80e791738..7eebceebd3791 100644 --- a/superset/models/sql_lab.py +++ b/superset/models/sql_lab.py @@ -273,7 +273,7 @@ def dttm_cols(self) -> List[Any]: @property def schema_perm(self) -> str: - return f"{self.database.name}.{self.database.schema}" + return f"{self.database.database_name}.{self.schema}" @property def default_endpoint(self) -> str: