Skip to content

Commit 4fc74de

Browse files
checking in progress for now, still have some issues with vector retrieval
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent 24e8cb8 commit 4fc74de

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

sdk/python/feast/infra/online_stores/online_store.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def get_online_features(
184184
full_feature_names=full_feature_names,
185185
native_entity_values=True,
186186
)
187+
# print(f"\nfeature refs = {feature_refs}")
187188

188189
for table, requested_features in grouped_refs:
189190
# Get the correct set of entity values with the correct join keys.
@@ -194,6 +195,7 @@ def get_online_features(
194195
)
195196

196197
entity_key_protos = utils._get_entity_key_protos(table_entity_values)
198+
print(f"entity key protos {entity_key_protos}")
197199

198200
# Fetch data for Entities.
199201
read_rows = self.online_read(

sdk/python/feast/infra/online_stores/sqlite.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,14 @@ def online_write_batch(
176176
) # type: ignore
177177
else:
178178
val_bin = feast_value_type_to_python_type(val)
179+
print(
180+
f"entity_key_bin = {entity_key_bin} (type: {type(entity_key_bin)})\n"
181+
f"feature_name = {feature_name} (type: {type(feature_name)})\n"
182+
f"value = {val.SerializeToString()} (type: {type(val.SerializeToString())})\n"
183+
f"val_bin = {val_bin} (type: {type(val_bin)})\n"
184+
f"timestamp = {timestamp} (type: {type(timestamp)})\n"
185+
f"created_ts = {created_ts} (type: {type(created_ts)})\n"
186+
)
179187
conn.execute(
180188
f"""
181189
INSERT INTO {table_name} (entity_key, feature_name, value, vector_value, event_ts, created_ts)

sdk/python/tests/unit/online_store/test_online_retrieval.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -855,10 +855,10 @@ def test_sqlite_hybrid_search() -> None:
855855
res_df["title"].tolist() == ["Guardians of the Galaxy", "Sing", "Suicide Squad"]
856856

857857

858-
@pytest.mark.skipif(
859-
sys.version_info[0:2] != (3, 10),
860-
reason="Only works on Python 3.10",
861-
)
858+
# @pytest.mark.skipif(
859+
# sys.version_info[0:2] != (3, 10),
860+
# reason="Only works on Python 3.10",
861+
# )
862862
def test_sqlite_get_online_documents_v2() -> None:
863863
"""Test retrieving documents using v2 method with vector similarity search."""
864864
n = 10

0 commit comments

Comments
 (0)