diff --git a/superset/commands/dataset/update.py b/superset/commands/dataset/update.py index 5c0d87b230eff..b1c3fead4e58f 100644 --- a/superset/commands/dataset/update.py +++ b/superset/commands/dataset/update.py @@ -87,10 +87,11 @@ def validate(self) -> None: database_id = self._properties.get("database", None) table_name = self._properties.get("table_name", None) + schema_name = self._properties.get("schema_name", None) # Validate uniqueness if not DatasetDAO.validate_update_uniqueness( self._model.database_id, - self._model.schema, + schema_name, self._model_id, table_name, ):