FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: Adding registry cache support for get_on_demand_feature_view by franciscojavierarceo · Pull Request #4572 · feast-dev/feast · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
10 changes: 7 additions & 3 deletions sdk/python/feast/feature_store.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -492,20 +492,24 @@ def _get_stream_feature_view(
stream_feature_view.entities = []
return stream_feature_view

def get_on_demand_feature_view(self, name: str) -> OnDemandFeatureView:
def get_on_demand_feature_view(
self, name: str, allow_registry_cache: bool = False
) -> OnDemandFeatureView:
"""
Retrieves a feature view.

Args:
name: Name of feature view.

allow_registry_cache: (Optional) Whether to allow returning this entity from a cached registry
Returns:
The specified feature view.

Raises:
FeatureViewNotFoundException: The feature view could not be found.
"""
return self._registry.get_on_demand_feature_view(name, self.project)
return self._registry.get_on_demand_feature_view(
name, self.project, allow_cache=allow_registry_cache
)

def get_data_source(self, name: str) -> DataSource:
"""
Expand Down

Back | FazBrowse Home | New Git URL