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
Fix python lint
Signed-off-by: NHUAN.TRAN <NhuanTDBK@users.noreply.github.com>
  • Loading branch information
NhuanTDBK committed Sep 13, 2022
commit bc4b939312e3b657c8ae0acefa1b3198f56740ed
8 changes: 6 additions & 2 deletions sdk/python/feast/infra/online_stores/contrib/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ def online_read(
SELECT entity_key, feature_name, value, event_ts
FROM {} WHERE entity_key = ANY(%s);
"""
).format(sql.Identifier(_table_id(project, table)),),
).format(
sql.Identifier(_table_id(project, table)),
),
(keys,),
)
else:
Expand All @@ -131,7 +133,9 @@ def online_read(
SELECT entity_key, feature_name, value, event_ts
FROM {} WHERE entity_key = ANY(%s) and feature_name = ANY(%s);
"""
).format(sql.Identifier(_table_id(project, table)),),
).format(
sql.Identifier(_table_id(project, table)),
),
(keys, requested_features),
)

Expand Down