Skip to content

Commit 8d9b831

Browse files
authored
Fix bug causing OnDemandFeatureView.infer_features() to fail when the… (#2046)
* Fix bug causing OnDemandFeatureView.infer_features() to fail when there are labels present in the features that are registered in the on-deamnd-feature-view definition. Signed-off-by: ArrichM <maximilianjakob.arrich@student.unisg.ch> * Linting changes Signed-off-by: ArrichM <maximilianjakob.arrich@student.unisg.ch> * Make comparison of features generally ignore labels. Signed-off-by: ArrichM <maximilianjakob.arrich@student.unisg.ch>
1 parent 63652e0 commit 8d9b831

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sdk/python/feast/feature.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ def __init__(
4848
self._labels = labels
4949

5050
def __eq__(self, other):
51-
if (
52-
self.name != other.name
53-
or self.dtype != other.dtype
54-
or self.labels != other.labels
55-
):
51+
if self.name != other.name or self.dtype != other.dtype:
5652
return False
5753
return True
5854

0 commit comments

Comments
 (0)