Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Handle ComplexFeastType to None comparison (#3876)
Signed-off-by: Aliaksandr Sasnouskikh <jahstreetlove@gmail.com>
  • Loading branch information
jahstreet authored Mar 7, 2024
commit fa8492dfe7f38ab493a8d35a412ec9334a0ff6b9
5 changes: 4 additions & 1 deletion sdk/python/feast/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def __hash__(self):
return hash(self.to_value_type().value)

def __eq__(self, other):
return self.to_value_type() == other.to_value_type()
if isinstance(other, ComplexFeastType):
return self.to_value_type() == other.to_value_type()
else:
return False


class PrimitiveFeastType(Enum):
Expand Down