We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16317d0 commit 5d1b4feCopy full SHA for 5d1b4fe
sdk/python/feast/infra/registry/sql.py
@@ -829,15 +829,13 @@ def _list_objects(
829
stmt = select(table).where(table.c.project_id == project)
830
rows = conn.execute(stmt).all()
831
if rows:
832
- objects = [
833
- python_class.from_proto(
+ objects = []
+ for row in rows:
834
+ obj = python_class.from_proto(
835
proto_class.FromString(row._mapping[proto_field_name])
836
)
- for row in rows
837
- ]
838
- for obj in objects:
839
- if not utils.has_all_tags(obj.tags, tags):
840
- objects.remove(obj)
+ if utils.has_all_tags(obj.tags, tags):
+ objects.append(obj)
841
return objects
842
return []
843
0 commit comments