Skip to content

Commit b2d82b6

Browse files
committed
feat: pass requested ODFVs into provider.get_historical_features
Signed-off-by: Shizoqua <hr.lanreshittu@yahoo.com>
1 parent e72f8ba commit b2d82b6

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

sdk/python/feast/feature_store.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,7 @@ def get_historical_features(
12181218
job = provider.get_historical_features(
12191219
self.config,
12201220
feature_views,
1221+
on_demand_feature_views,
12211222
_feature_refs,
12221223
entity_df,
12231224
self._registry,

sdk/python/feast/infra/passthrough_provider.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,13 +459,15 @@ def get_historical_features(
459459
self,
460460
config: RepoConfig,
461461
feature_views: List[Union[FeatureView, OnDemandFeatureView]],
462+
on_demand_feature_views: List[OnDemandFeatureView],
462463
feature_refs: List[str],
463464
entity_df: Optional[Union[pd.DataFrame, str]],
464465
registry: BaseRegistry,
465466
project: str,
466467
full_feature_names: bool,
467468
**kwargs,
468469
) -> RetrievalJob:
470+
del on_demand_feature_views
469471
job = self.offline_store.get_historical_features(
470472
config=config,
471473
feature_views=feature_views,

sdk/python/feast/infra/provider.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ def get_historical_features(
250250
self,
251251
config: RepoConfig,
252252
feature_views: List[Union[FeatureView, OnDemandFeatureView]],
253+
on_demand_feature_views: List[OnDemandFeatureView],
253254
feature_refs: List[str],
254255
entity_df: Optional[Union[pd.DataFrame, str]],
255256
registry: BaseRegistry,
@@ -263,6 +264,7 @@ def get_historical_features(
263264
Args:
264265
config: The config for the current feature store.
265266
feature_views: A list containing all feature views that are referenced in the entity rows.
267+
on_demand_feature_views: The on demand feature views requested as part of the retrieval.
266268
feature_refs: The features to be retrieved.
267269
entity_df: A collection of rows containing all entity columns on which features need to be joined,
268270
as well as the timestamp column used for point-in-time joins. Either a pandas dataframe can be

0 commit comments

Comments
 (0)