Skip to content

Commit 2ea349e

Browse files
Update sdk/python/feast/aggregation/__init__.py
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent cf0a274 commit 2ea349e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/python/feast/aggregation/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def resolved_name(self, time_window: Optional[timedelta] = None) -> str:
113113
if self.name:
114114
return self.name
115115
base = f"{self.function}_{self.column}"
116-
if time_window is not None:
116+
if time_window is not None and time_window.total_seconds() > 0:
117117
return f"{base}_{int(time_window.total_seconds())}s"
118118
return base
119119

0 commit comments

Comments
 (0)