Skip to content

Commit 81d6d41

Browse files
committed
CR
Signed-off-by: Achal Shah <achals@gmail.com>
1 parent ac1dbfa commit 81d6d41

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

protos/feast/core/FeatureView.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ message FeatureViewSpec {
6060

6161
// Batch/Offline DataSource where this view can retrieve offline feature data.
6262
DataSource batch_source = 7;
63+
// Streaming DataSource from where this view can consume "online" feature data.
6364
DataSource stream_source = 9;
6465

6566
// Whether these features should be served online or not

sdk/python/feast/data_source.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,9 @@ def __init__(
869869
)
870870

871871
def __eq__(self, other):
872+
if other is None:
873+
return False
874+
872875
if not isinstance(other, KinesisSource):
873876
raise TypeError(
874877
"Comparisons should only involve KinesisSource class objects."

sdk/python/feast/feature_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def from_proto(cls, feature_view_proto: FeatureViewProto):
228228
batch_source=_input,
229229
stream_source=(
230230
feature_view_proto.spec.stream_source
231-
if feature_view_proto.spec.stream_source is None
231+
if feature_view_proto.spec.stream_source is not None
232232
else None
233233
),
234234
)

0 commit comments

Comments
 (0)