From 917a6c55a88ac3983f1be73498637293b6de05ea Mon Sep 17 00:00:00 2001 From: tanlocnguyen Date: Sat, 23 Mar 2024 16:20:45 +0700 Subject: [PATCH] feat: add hash component Signed-off-by: tanlocnguyen --- .../contrib/spark_offline_store/spark_source.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark_source.py b/sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark_source.py index 0809043a010..242d2bd90f9 100644 --- a/sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark_source.py +++ b/sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark_source.py @@ -196,7 +196,13 @@ def __eq__(self, other): ) def __hash__(self): - return super().__hash__() + return hash( + self.name, + self.timestamp_field, + self.table, + self.query, + self.path + ) class SparkOptions: