-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: Disable materialized odfvs for historical retrieval #5880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ | |
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| import asyncio | ||
| import copy | ||
| import itertools | ||
| import os | ||
| import warnings | ||
|
|
@@ -1233,6 +1234,17 @@ def get_historical_features( | |
| # TODO(achal): _group_feature_refs returns the on demand feature views, but it's not passed into the provider. | ||
| # This is a weird interface quirk - we should revisit the `get_historical_features` to | ||
| # pass in the on demand feature views as well. | ||
|
|
||
astronautas marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # Deliberately disable writing to online store for ODFVs during historical retrieval | ||
| # since it's not applicable in this context. | ||
| # This does not change the output, since it forces to recompute ODFVs on historical retrieval | ||
| # but that is fine, since ODFVs precompute does not to work for historical retrieval (as per docs), only for online retrieval | ||
| # Copy to avoid side effects outside of this method | ||
| all_on_demand_feature_views = copy.deepcopy(all_on_demand_feature_views) | ||
|
|
||
| for odfv in all_on_demand_feature_views: | ||
| odfv.write_to_online_store = False | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i don't love this solution, but i accept it's a pragmatic one. @copilot can you come up with an alternative?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. adjusted based on copilot suggestion to avoid side effects
Comment on lines
+1245
to
+1246
|
||
|
|
||
| fvs, odfvs = utils._group_feature_refs( | ||
| _feature_refs, | ||
| all_feature_views, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.