This is an automated email from the ASF dual-hosted git repository. michaelsmolina pushed a commit to branch 4.0 in repository https://gitbox.apache.org/repos/asf/superset.git
commit dc0a97ccb657ddd84326623731b09c3b60acc255 Author: John Bodley <[email protected]> AuthorDate: Tue May 7 06:42:37 2024 -0700 fix: Remedy logic for UpdateDatasetCommand uniqueness check (#28341) --- superset/commands/dataset/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset/commands/dataset/update.py b/superset/commands/dataset/update.py index 5c0d87b230..b1c3fead4e 100644 --- a/superset/commands/dataset/update.py +++ b/superset/commands/dataset/update.py @@ -87,10 +87,11 @@ class UpdateDatasetCommand(UpdateMixin, BaseCommand): 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, ):
