← 返回首页
fix: Support historical feature retrieval with start_date/end_date in RemoteOfflineStore by aniketpalu · Pull Request #5703 · feast-dev/feast · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

fix: Support historical feature retrieval with start_date/end_date in RemoteOfflineStore#5703

Merged
ntkathole merged 6 commits into
feast-dev:masterfrom
aniketpalu:RHOAIENG-32904
Nov 3, 2025
Merged

fix: Support historical feature retrieval with start_date/end_date in RemoteOfflineStore#5703
ntkathole merged 6 commits into
feast-dev:masterfrom
aniketpalu:RHOAIENG-32904

Conversation

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Problem

  • get_historical_features() with start_date/end_date parameters (no entity_df) works in local mode but fails in remote mode with:
    • EntityTimestampInferenceException: Please provide an entity_df with a column named event_timestamp

Root Cause

  • Remote client sends mock table {"key": "mock_key"} when entity_df is None
  • Server treats mock table as valid entity_df, which lacks event_timestamp column
  • Server doesn't forward start_date/end_date to underlying offline store

Changes

  • Client (remote.py):
    • Handle None entity_df in _create_retrieval_metadata() and _get_entity_schema()
  • Server (offline_server.py):
    • Detect and discard mock tables (single 'key' column)
    • Create minimal entity_df with event_timestamp from start_date/end_date
    • Forward start_date/end_date kwargs to underlying offline store
    • Use pd.to_datetime() and utils.make_tzaware() for proper timestamp types

Which issue(s) this PR fixes:

Misc

…RemoteOfflineStore Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
… entity_df in offline server Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
Copy link
Copy Markdown
Member

ntkathole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Looks good! @aniketpalu can you please rebase to resolve conflicts ?

Copy link
Copy Markdown
Collaborator

jyejare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Handle empty entity_df in offline server.

Comment thread sdk/python/feast/offline_server.py Outdated
datetime.fromisoformat(command["start_date"])
)
end_date = utils.make_tzaware(datetime.fromisoformat(command["end_date"]))
entity_df = pd.DataFrame(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

We should not need to create dummy entity_df at all. We should handle empty(entity_df=None) entity_df for and in offline_store.get_historical_features which we are returning in this function.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

You are right, its not needed to create mock dataframe with timestamps, just had to make sure that empty_df is being passed.

Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
aniketpalu requested a review from jyejare November 3, 2025 11:11
Hide details View details ntkathole merged commit ad32756 into feast-dev:master Nov 3, 2025
17 checks passed
franciscojavierarceo pushed a commit that referenced this pull request Nov 13, 2025
# [0.57.0](v0.56.0...v0.57.0) (2025-11-13) ### Bug Fixes * Improve trino to feast type mapping with (real,varchar,timestamp,decimal) ([#5691](#5691)) ([f855ad2](f855ad2)) * Materialize API - ODFV views not looked-up (thinks views non existant) - crashes materialize ([#5716](#5716)) ([1b050b3](1b050b3)) * Support historical feature retrieval with start_date/end_date in RemoteOfflineStore ([#5703](#5703)) ([ad32756](ad32756)) * Thread safe Clickhouse offline store ([#5710](#5710)) ([5f446ed](5f446ed)) ### Features * Add annotations to cronjob CRDs ([#5701](#5701)) ([be6e6c2](be6e6c2)) * Add batch commit mode for MySQL OnlineStore ([#5699](#5699)) ([3cfe4eb](3cfe4eb)) * Add possibility to materialize only latest values, to increase performance ([#5713](#5713)) ([8d77b72](8d77b72)) * Support table format: Iceberg, Delta, and Hudi ([#5650](#5650)) ([2915ad1](2915ad1))
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Footer

© 2026 GitHub, Inc.