Visitar URL original
feat: DuckDB historical retrieval without entity dataframe by Vperiodt · Pull Request #6108 · feast-dev/feast · GitHub
Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix rename
Signed-off-by: Vanshika Vanshika <vvanshik@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
Vperiodt committed Apr 17, 2026
commit 2d8252b1c56c54452bc41402ad2fa06b54616eda
4 changes: 3 additions & 1 deletion sdk/python/feast/infra/offline_stores/duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,11 @@ def _build_entity_df_from_sources(
source_join_key_cols = list(join_key_map.keys())

if source_join_key_cols:
# join_key_map is {feature_key: entity_key}; ibis rename({new: old}) renames
# old->new, so pass inverted map to rename feature columns to entity names.
distinct_entities = (
fv_table.select(*source_join_key_cols)
.rename(join_key_map)
.rename({v: k for k, v in join_key_map.items()})
.distinct()
.execute()
)
Expand Down