Skip to content
Merged
Show file tree
Hide file tree
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
CR
Signed-off-by: Achal Shah <achals@gmail.com>
  • Loading branch information
achals committed Jun 28, 2021
commit 81d6d41d38d2fc35e428f97115b81d0f1d480f8c
1 change: 1 addition & 0 deletions protos/feast/core/FeatureView.proto
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ message FeatureViewSpec {

// Batch/Offline DataSource where this view can retrieve offline feature data.
DataSource batch_source = 7;
// Streaming DataSource from where this view can consume "online" feature data.
DataSource stream_source = 9;
Comment thread
woop marked this conversation as resolved.
Outdated

// Whether these features should be served online or not
Expand Down
3 changes: 3 additions & 0 deletions sdk/python/feast/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,9 @@ def __init__(
)

def __eq__(self, other):
if other is None:
return False

if not isinstance(other, KinesisSource):
raise TypeError(
"Comparisons should only involve KinesisSource class objects."
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/feast/feature_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def from_proto(cls, feature_view_proto: FeatureViewProto):
batch_source=_input,
stream_source=(
feature_view_proto.spec.stream_source
if feature_view_proto.spec.stream_source is None
if feature_view_proto.spec.stream_source is not None
else None
),
)
Expand Down