Visitar URL original
perf(postgres): Optimizing feast offline Store for date-range multi-FV retrieval by Vperiodt · Pull Request #6057 · 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-lint
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 10, 2026
commit 8c66e6f74aaae6fe63cd6329d13607756ce9d435
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import contextlib
from dataclasses import asdict
from datetime import datetime, timezone
from datetime import datetime, timedelta, timezone
from enum import Enum
from typing import (
Any,
Expand Down Expand Up @@ -46,7 +46,7 @@
from feast.repo_config import RepoConfig
from feast.saved_dataset import SavedDatasetStorage
from feast.type_map import pg_type_code_to_arrow
from feast.utils import compute_non_entity_date_range
from feast.utils import make_tzaware

from .postgres_source import PostgreSQLSource

Expand Down Expand Up @@ -136,7 +136,7 @@ def get_historical_features(
if entity_df is None:
# Default to current time if end_date not provided
if end_date is None:
end_date = _utc_now()
end_date = datetime.now(tz=timezone.utc)
else:
end_date = make_tzaware(end_date)
# Find the maximum TTL across all feature views to ensure we capture enough data
Expand Down
Loading