Skip to content

SqlRegistry _apply_object doesn't take into account match with project_id when updating row #4027

@Nmroth42

Description

@Nmroth42

SqlRegistry _apply_object doesn't take into account match with project_id when updating row.
https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/registry/sql.py#L736

Wrong (as is):
.where(getattr(table.c, id_field_name) == name)

Correct:
.where(getattr(table.c, id_field_name) == name, table.c.project_id == project)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions