Skip to content

Commit ffe9ee5

Browse files
Update sdk/python/feast/batch_feature_view.py
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 5178fd7 commit ffe9ee5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sdk/python/feast/batch_feature_view.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ def __init__(
117117
f"or CUSTOM_SOURCE, got {type(source).__name__}: {source.name} instead "
118118
)
119119

120+
if source is None and aggregations:
121+
raise ValueError(
122+
"BatchFeatureView with aggregations requires a source to aggregate from."
123+
)
124+
120125
if (
121126
source is None
122127
and not udf

0 commit comments

Comments
 (0)