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
feat: Adding optional name to Aggregation (#5994) (#6083)
* feat: Adding optional name to Aggregation (#5994)
Signed-off-by: Nick Quinn <nicholas_quinn@apple.com>
* Fix lint-python test
Signed-off-by: Nick Quinn <nicholas_quinn@apple.com>
* Adding name to documentation
Signed-off-by: Nick Quinn <nicholas_quinn@apple.com>
* Devin feedback
Signed-off-by: Nick Quinn <nicholas_quinn@apple.com>
* 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 <nicholas_quinn@apple.com>
---------
Signed-off-by: Nick Quinn <nicholas_quinn@apple.com>
Co-authored-by: Nick Quinn <nicholas_quinn@apple.com>
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