Visitar URL original
feat: Add Set as feature type by Copilot · Pull Request #5888 · feast-dev/feast · GitHub
Skip to content
Merged
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
Apply ruff formatting
  • Loading branch information
franciscojavierarceo committed Jan 27, 2026
commit 325edb76debc77680a65cc22c6b79ce37c251b05
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,12 @@ def online_write_batch(
)

# Remove timestamp fields that are handled separately to avoid conflicts
timestamp_fields = ["event_timestamp", "created_timestamp", "event_ts", "created_ts"]
timestamp_fields = [
"event_timestamp",
"created_timestamp",
"event_ts",
"created_ts",
]
for field in timestamp_fields:
values_dict.pop(field, None)

Expand Down Expand Up @@ -756,10 +761,13 @@ def _extract_proto_values_to_dict(
if (
serialize_to_string
and proto_val_type
not in ["string_val", "bytes_val", "unix_timestamp_val"] + numeric_types
not in ["string_val", "bytes_val", "unix_timestamp_val"]
+ numeric_types
):
# For complex types, use base64 encoding instead of decode
vector_values = base64.b64encode(feature_values.SerializeToString()).decode("utf-8")
vector_values = base64.b64encode(
feature_values.SerializeToString()
).decode("utf-8")
elif proto_val_type == "bytes_val":
byte_data = getattr(feature_values, proto_val_type)
vector_values = base64.b64encode(byte_data).decode("utf-8")
Expand Down
Loading