We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d1b4fe commit 3f784e2Copy full SHA for 3f784e2
sdk/python/feast/infra/registry/snowflake.py
@@ -782,15 +782,13 @@ def _list_objects(
782
"""
783
df = execute_snowflake_statement(conn, query).fetch_pandas_all()
784
if not df.empty:
785
- objects = [
786
- python_class.from_proto(
+ objects = []
+ for row in df.iterrows():
787
+ obj = python_class.from_proto(
788
proto_class.FromString(row[1][proto_field_name])
789
)
- for row in df.iterrows()
790
- ]
791
- for obj in objects:
792
- if not utils.has_all_tags(obj.tags, tags):
793
- objects.remove(obj)
+ if utils.has_all_tags(obj.tags, tags):
+ objects.append(obj)
794
return objects
795
return []
796
0 commit comments