You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 56469f7
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat: Adding optional name to Aggregation (#5994) (#6083)
* feat: Adding optional name to Aggregation (#5994)
Signed-off-by: Nick Quinn <[email protected]>
* Fix lint-python test
Signed-off-by: Nick Quinn <[email protected]>
* Adding name to documentation
Signed-off-by: Nick Quinn <[email protected]>
* Devin feedback
Signed-off-by: Nick Quinn <[email protected]>
* Update sdk/python/feast/aggregation/__init__.py
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Signed-off-by: Nick Quinn <[email protected]>
---------
Signed-off-by: Nick Quinn <[email protected]>
Co-authored-by: Nick Quinn <[email protected]>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
-`source` is optional; if omitted (`None`), the feature view has no associated batch data source.
146
146
- Schema fields must be consistent with `sink_source`, `batch_source.field_mapping` if field mappings exist.
147
147
- Aggregation logic must reference columns present in the raw source or transformed inputs.
148
+
- The output feature name for an aggregation defaults to `{function}_{column}` (e.g., `sum_conv_rate`). Use the `name` parameter to override it (e.g., `name="total_conv_rate_1d"`).
-`aggregations`: List of time-windowed aggregations to compute
232
+
-`aggregations`: List of time-windowed aggregations to compute. Each `Aggregation` accepts:
233
+
-`column`: source column to aggregate
234
+
-`function`: aggregation function (`sum`, `avg`, `mean`, `min`, `max`, `count`, `std`)
235
+
-`time_window`: duration of the aggregation window
236
+
-`slide_interval`: hop/slide size (defaults to `time_window`)
237
+
-`name`*(optional)*: output feature name. Defaults to `{function}_{column}` (e.g., `sum_amount`). Set this to use a custom name (e.g., `name="sum_amount_1h"`).
233
238
-`timestamp_field`: Column name for timestamps (required when aggregations are specified)
0 commit comments