Skip to content

Commit

Permalink
reverse serving key check logic: check if all the necessary keys from…
Browse files Browse the repository at this point in the history
… the prepared statement are in the entry provided by the user (#719)
  • Loading branch information
davitbzh authored Jul 15, 2022
1 parent 5776172 commit 7582738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/hsfs/core/vector_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ def get_feature_vector(self, entry, passed_features={}, preview_sample=0):

for prepared_statement_index in self._prepared_statements:
if any(
e not in self._pkname_by_serving_index[prepared_statement_index]
for e in entry.keys()
e not in entry.keys()
for e in self._pkname_by_serving_index[prepared_statement_index]
):
# User did not provide the necessary serving keys, we expect they have
# provided the necessary features as passed_features.
Expand Down

0 comments on commit 7582738

Please sign in to comment.