From b0b62cce1f9d55b48d741354abc50436513e7a89 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Fri, 15 Sep 2023 09:23:04 -0400 Subject: [PATCH] perf(ops): early return if two nodes do not hash to the same value --- ibis/common/grounds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibis/common/grounds.py b/ibis/common/grounds.py index 91994108c4a3..f31dcb6dae56 100644 --- a/ibis/common/grounds.py +++ b/ibis/common/grounds.py @@ -217,7 +217,7 @@ def __hash__(self) -> int: return self.__precomputed_hash__ def __equals__(self, other) -> bool: - return self.__args__ == other.__args__ + return hash(self) == hash(other) and self.__args__ == other.__args__ @property def args(self):