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
nits
Signed-off-by: Achal Shah <achals@gmail.com>
  • Loading branch information
achals committed Jul 6, 2022
commit 6a27bfc7d184cc7b0b26fc9b27a1bdec4d45e8d6
4 changes: 2 additions & 2 deletions sdk/python/feast/feature_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def to_proto(self) -> FeatureViewProto:
A FeatureViewProto protobuf.
"""
meta = self.to_proto_meta()
ttl_duration = self.ttl_duration()
ttl_duration = self.get_ttl_duration()

batch_source_proto = self.batch_source.to_proto()
batch_source_proto.data_source_class_type = f"{self.batch_source.__class__.__module__}.{self.batch_source.__class__.__name__}"
Expand Down Expand Up @@ -447,7 +447,7 @@ def to_proto_meta(self):
meta.materialization_intervals.append(interval_proto)
return meta

def ttl_duration(self):
def get_ttl_duration(self):
ttl_duration = None
if self.ttl is not None:
ttl_duration = Duration()
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/feast/stream_feature_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def __hash__(self) -> int:

def to_proto(self):
meta = self.to_proto_meta()
ttl_duration = self.ttl_duration()
ttl_duration = self.get_ttl_duration()

batch_source_proto = None
if self.batch_source:
Expand Down