Sorry, something went wrong.
| if odfv.mode == "python": | ||
| # Apply aggregations if configured. | ||
| if odfv.aggregations: | ||
| if odfv.mode == "python": |
There was a problem hiding this comment.
Currently if this is a python input, we don't have aggregation function to use OOTD, so it use the pandas Dataframe backend to aggregate. I think in long term we need to create a real time compute engine, where we support python native compute operations such as aggregations, filtering, joining etc.
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
There was a problem hiding this comment.
what does OOTD mean ?
Sorry, something went wrong.
There was a problem hiding this comment.
OOTB :)
Sorry, something went wrong.
There was a problem hiding this comment.
This PR adds aggregation support to OnDemandFeatureView (ODFV) and refactors the backend dataframe module structure. The implementation allows ODFVs to apply aggregations during online feature serving, either using aggregations or feature transformations (but not both). The backend modules are moved from the local directory to a parent-level backends directory to enable reusability across different compute engines like Spark.
Key Changes:
Copilot reviewed 8 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file| sdk/python/tests/unit/test_on_demand_feature_view_aggregation.py | New test file covering aggregation functionality in Python and Pandas modes |
| sdk/python/feast/utils.py | Added aggregation utility functions and integrated aggregation logic into ODFV transformation pipeline |
| sdk/python/feast/infra/compute_engines/local/nodes.py | Updated import path for DataFrameBackend |
| sdk/python/feast/infra/compute_engines/local/feature_builder.py | Updated import path for DataFrameBackend |
| sdk/python/feast/infra/compute_engines/local/compute.py | Updated import paths for DataFrameBackend and BackendFactory |
| sdk/python/feast/infra/compute_engines/backends/polars_backend.py | Updated import path for base DataFrameBackend |
| sdk/python/feast/infra/compute_engines/backends/pandas_backend.py | Updated import path for base DataFrameBackend |
| sdk/python/feast/infra/compute_engines/backends/factory.py | Updated import paths for backend classes |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you
Sorry, something went wrong.
What this PR does / why we need it:
Which issue(s) this PR fixes:
Misc