Skip to content

Commit 580b77f

Browse files
adding logs
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent c46e157 commit 580b77f

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ def online_write_batch(
153153
)
154154

155155
else:
156+
if table_name == 'test_on_demand_python_transformation_python_stored_writes_feature_view':
157+
print(f"writing online batch for {table_name} - {feature_name} = {val}")
156158
conn.execute(
157159
f"""
158160
UPDATE {table_name}
@@ -184,7 +186,8 @@ def online_write_batch(
184186
),
185187
)
186188
except Exception as e:
187-
pass
189+
print(f"error writing online batch for {table_name} - {feature_name} = {val}\n {e}")
190+
print(f'querying all records for table: {conn.execute(f"select * from {table_name}").fetchall()}')
188191
if progress:
189192
progress(1)
190193

@@ -251,6 +254,7 @@ def update(
251254
project = config.project
252255

253256
for table in tables_to_keep:
257+
print(f'updating {_table_id(project, table)}')
254258
conn.execute(
255259
f"CREATE TABLE IF NOT EXISTS {_table_id(project, table)} (entity_key BLOB, feature_name TEXT, value BLOB, vector_value BLOB, event_ts timestamp, created_ts timestamp, PRIMARY KEY(entity_key, feature_name))"
256260
)

0 commit comments

Comments
 (0)