Skip to content

Commit 710169d

Browse files
committed
Fix issues
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
1 parent cdc3b0b commit 710169d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sdk/python/feast/repo_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def parse_repo(repo_root: Path) -> RepoContents:
147147
):
148148
batch_source_dep = obj.stream_source.batch_source
149149
# Don't add if the push source's batch source is a duplicate of an existing batch source
150-
if batch_source_dep not in data_sources_set:
150+
if batch_source_dep and batch_source_dep not in data_sources_set:
151151
res.data_sources.append(batch_source_dep)
152152
elif isinstance(obj, Entity) and not any(
153153
(obj is entity) for entity in res.entities

sdk/python/tests/integration/registration/test_stream_feature_view_apply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def simple_sfv(df):
6262
assert entities[0] == entity
6363

6464
features = fs.get_online_features(
65-
features=["simple_sfv:dummy_field",], entity_rows=[{"test_key": 1001}],
65+
features=["simple_sfv:dummy_field"], entity_rows=[{"test_key": 1001}],
6666
).to_dict(include_event_timestamps=True)
6767

6868
assert "test_key" in features

0 commit comments

Comments
 (0)