Skip to content

Commit

Permalink
fix: Remedy logic for UpdateDatasetCommand uniqueness check (#28341)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored and michael-s-molina committed May 8, 2024
1 parent d046a32 commit dc0a97c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/commands/dataset/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
):
Expand Down

0 comments on commit dc0a97c

Please sign in to comment.