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: Guard against None batch_source for mypy
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
  • Loading branch information
franciscojavierarceo and claude committed Jul 13, 2026
commit a2768c6e28ec350518ecd0fc7a140e5087ced54e
8 changes: 6 additions & 2 deletions sdk/python/feast/infra/online_stores/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,12 @@ def online_write_batch(

columnar_data: Dict[str, List[Any]] = defaultdict(list)

event_col = table.batch_source.timestamp_field or "event_timestamp"
created_col = table.batch_source.created_timestamp_column or "created"
if table.batch_source is not None:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if table.batch_source is not None:
batch_source = getattr(table, 'batch_source', None)
if batch_source is not None:

event_col = table.batch_source.timestamp_field or "event_timestamp"
created_col = table.batch_source.created_timestamp_column or "created"
else:
event_col = "event_timestamp"
created_col = "created"

# Iterate through each row to populate columnar data directly
for entity_key_proto, feature_values_proto, event_ts, created_ts in data:
Expand Down
Loading