Skip to content

Commit 6c38b92

Browse files
committed
fix postgres test
1 parent 396d7de commit 6c38b92

File tree

1 file changed

+2
-1
lines changed
  • sdk/python/feast/infra/online_stores/contrib

1 file changed

+2
-1
lines changed

sdk/python/feast/infra/online_stores/contrib/postgres.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import logging
33
from collections import defaultdict
44
from datetime import datetime
5-
from typing import Any, Callable, Dict, List, Literal, Optional, Sequence, Tuple
5+
from typing import Any, Callable, Dict, List, Literal, Optional, Sequence, Tuple, Union
66

77
import psycopg2
88
import pytz
@@ -74,6 +74,7 @@ def online_write_batch(
7474
created_ts = _to_naive_utc(created_ts)
7575

7676
for feature_name, val in values.items():
77+
val_str: Union[str, bytes]
7778
if config.online_config["pgvector_enabled"]:
7879
val_str = str(val.float_list_val.val)
7980
else:

0 commit comments

Comments
 (0)