Lee-W commented on code in PR #41097: URL: https://github.com/apache/airflow/pull/41097#discussion_r1696572240
########## airflow/models/dataset.py: ########## @@ -124,6 +128,15 @@ def from_public(cls, obj: DatasetAlias) -> DatasetAliasModel: def __repr__(self): return f"{self.__class__.__name__}(name={self.name!r})" + def __hash__(self): + return hash(self.name) + + def __eq__(self, other): + if isinstance(other, (self.__class__, DatasetAlias)): + return self.name == other.name + else: + return NotImplemented Review Comment: I tried to trace the SQLAlchemy code a bit. Didn't find special handling for `__eq__` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org