Skip to content

Commit

Permalink
Fix materialization_intervals initialization in FeatureView (#1438)
Browse files Browse the repository at this point in the history
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
  • Loading branch information
Tsotne Tabidze committed Apr 4, 2021
1 parent 305842f commit 01481eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/python/feast/feature_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class FeatureView:

created_timestamp: Optional[Timestamp] = None
last_updated_timestamp: Optional[Timestamp] = None
materialization_intervals: List[Tuple[datetime, datetime]] = []
materialization_intervals: List[Tuple[datetime, datetime]]

def __init__(
self,
Expand Down Expand Up @@ -79,6 +79,8 @@ def __init__(
self.online = online
self.input = input

self.materialization_intervals = []

def is_valid(self):
"""
Validates the state of a feature view locally. Raises an exception
Expand Down

0 comments on commit 01481eb

Please sign in to comment.