Skip to content

Commit

Permalink
fix: aggregate offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Mats E. Mollestad committed Nov 21, 2023
1 parent 3d5ffc6 commit f6829ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion aligned/local/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,18 @@ async def aggregate(request: RetrivalRequest, core_data: pl.LazyFrame) -> pl.Laz
time_name,
every=over.window.every_interval,
period=over.window.time_window,
offset=over.window.offset_interval,
by=over.group_by_names,
)
.agg(exprs)
.with_columns(pl.col(time_name) + over.window.time_window)
)
else:
sub = sorted_data.groupby_rolling(
time_name, period=over.window.time_window, by=over.group_by_names
time_name,
period=over.window.time_window,
offset=over.window.offset_interval,
by=over.group_by_names,
).agg(exprs)

if results is not None:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aligned"
version = "0.0.44"
version = "0.0.45"
description = "A scalable feature store that makes it easy to align offline and online ML systems"
authors = ["Mats E. Mollestad <mats@mollestad.no>"]
license = "Apache-2.0"
Expand Down

0 comments on commit f6829ab

Please sign in to comment.