Skip to content

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

Closed

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)

Activity

  1. changed the title [-]SqlRegistry _apply_object doesn't take into account match with project_id on update[/-] [+]SqlRegistry _apply_object doesn't take into account match with project_id when updating row[/+] on Mar 21, 2024
  2. tokoko commented on Mar 25, 2024

    @tokoko
    Collaborator

    @Nmroth42 thanks, would you like to open a PR for this?

  3. Nmroth42 commented on Mar 26, 2024

    @Nmroth42
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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