Skip to content

Commit

Permalink
fix: SqlRegistry _apply_object update statement (#4042)
Browse files Browse the repository at this point in the history
* fix sql registry update stmt

Signed-off-by: Nmroth42 <mannoroth42@gmail.com>

* refactor code

Signed-off-by: Nmroth42 <mannoroth42@gmail.com>

---------

Signed-off-by: Nmroth42 <mannoroth42@gmail.com>
  • Loading branch information
Nmroth42 committed Mar 27, 2024
1 parent ad8f572 commit ef62def
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdk/python/feast/infra/registry/sql.py
Expand Up @@ -691,7 +691,10 @@ def _apply_object(
}
update_stmt = (
update(table)
.where(getattr(table.c, id_field_name) == name)
.where(
getattr(table.c, id_field_name) == name,
table.c.project_id == project,
)
.values(
values,
)
Expand Down

0 comments on commit ef62def

Please sign in to comment.